Skip to content

Commit

Permalink
Merge pull request #199 from chaudharysaket/workflow
Browse files Browse the repository at this point in the history
Workflow remove softprops
  • Loading branch information
iamemilio authored Feb 28, 2024
2 parents cd505ef + f8ee9c3 commit 3c252c0
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/build-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ jobs:
- name: Build and archive x86_64 distribution
run: make zip-x86_64
- name: Publish x86_64 release on GitHub
uses: softprops/action-gh-release@v1
with:
files: /tmp/newrelic-lambda-extension.x86_64.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }}
name: "Release ${{ github.ref_name }}"
draft: false
prerelease: false

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
file=/tmp/newrelic-lambda-extension.x86_64.zip
echo "uploading $file to release $TAG"
gh release upload "$TAG" "$file"
build-release-arm:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -47,11 +46,10 @@ jobs:
- name: Build and archive arm distribution
run: make zip-arm64
- name: Publish zip-arm64 release on GitHub
uses: softprops/action-gh-release@v1
with:
files: /tmp/newrelic-lambda-extension.arm64.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }}
name: "Release ${{ github.ref_name }}"
draft: false
prerelease: false
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
file=/tmp/newrelic-lambda-extension.arm64.zip
echo "uploading $file to release $TAG"
gh release upload "$TAG" "$file"

0 comments on commit 3c252c0

Please sign in to comment.