From 8de17653df55b4923e2274fdca11bbb642c41f25 Mon Sep 17 00:00:00 2001 From: Romain Gallet Date: Sun, 30 Jun 2024 21:54:37 +0200 Subject: [PATCH 1/2] NOJ - Using softprops/action-gh-release@v2 --- .github/workflows/release.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 127bab1..57ec26f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,26 +29,13 @@ jobs: RELEASE_VERSION=$(echo ${{ github.ref }} | tr -d 'refs/tags/v') echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') # redundant, but just to be sure with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Assets - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_name: gohip-linux-amd64 - asset_path: ./gohip-linux-amd64 - asset_content_type: application/octet-stream + files: | + gohip-linux-amd64 + gohip-static-linux-amd64 - name: Create Debian package env: From 713d9327680ac53dbee79fa7c1502f781575c2af Mon Sep 17 00:00:00 2001 From: Romain Gallet Date: Sun, 30 Jun 2024 22:30:09 +0200 Subject: [PATCH 2/2] NOJ - Using softprops/action-gh-release@v2 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57ec26f..2dddece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} RELEASE_VERSION=$RELEASE_VERSION DESTDIR=$DESTDIR make debian-pkg - name: Upload Debian release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} files: | @@ -71,7 +71,7 @@ jobs: md5sum gohip-$RELEASE_VERSION-1.x86_64.rpm >> gohip-$RELEASE_VERSION-1.x86_64.rpm - name: Upload CentOS 8 release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} files: | @@ -111,7 +111,7 @@ jobs: md5sum build-aux/arch/gohip-bin/gohip-bin-$RELEASE_VERSION-1-x86_64.pkg.tar.zst >> build-aux/arch/gohip-bin/gohip-bin-$RELEASE_VERSION-1-x86_64.pkg.tar.zst.md5sum - name: Upload Arch Linux release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} files: |