From 1ae507d3ce581d95e0779144ccbea1c4c0f5808a Mon Sep 17 00:00:00 2001 From: Saket Chaudhary Date: Wed, 28 Feb 2024 22:14:19 +0530 Subject: [PATCH 1/2] remove softprops --- .github/workflows/build-release-assets.yml | 32 ++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-release-assets.yml b/.github/workflows/build-release-assets.yml index 1fac569..ccc6fe0 100644 --- a/.github/workflows/build-release-assets.yml +++ b/.github/workflows/build-release-assets.yml @@ -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') @@ -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" From f8ee9c36314f79c76ac868a4e4bec082a2c34548 Mon Sep 17 00:00:00 2001 From: Saket Chaudhary Date: Wed, 28 Feb 2024 22:19:10 +0530 Subject: [PATCH 2/2] update --- .github/workflows/build-release-assets.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release-assets.yml b/.github/workflows/build-release-assets.yml index ccc6fe0..883c8ac 100644 --- a/.github/workflows/build-release-assets.yml +++ b/.github/workflows/build-release-assets.yml @@ -29,7 +29,7 @@ jobs: run: | file=/tmp/newrelic-lambda-extension.x86_64.zip echo "uploading $file to release $TAG" - gh release upload "$tag" "$file" + gh release upload "$TAG" "$file" build-release-arm: runs-on: ubuntu-20.04 @@ -52,4 +52,4 @@ jobs: run: | file=/tmp/newrelic-lambda-extension.arm64.zip echo "uploading $file to release $TAG" - gh release upload "$tag" "$file" + gh release upload "$TAG" "$file"