From ac963c2d9f47d1361a6c441c527d0d30a6f09e70 Mon Sep 17 00:00:00 2001 From: hz Date: Sun, 18 Feb 2024 07:54:07 +0800 Subject: [PATCH] fix simple-release script and re-bump --- .github/workflows/go.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 912f566..ef98a18 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -103,7 +103,10 @@ jobs: # # https://docs.github.com/en/actions/learn-github-actions/contexts#job-context simple-release: - # permissions: write-all # this is the FIX + permissions: write-all # this is the FIX + # permissions: # this is the FIX + # contents: write + # discussions: write runs-on: ubuntu-latest needs: coverage if: startsWith(github.ref, 'refs/tags/') # in job..if, 'env' is not available !! @@ -158,9 +161,6 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 if: env.ENABLE_Simple_Release != 0 - permissions: # this is the FIX - contents: write - discussions: write with: # body_path: ${{ github.workspace }}-CHANGELOG.txt # body_path: RELNOTES.md @@ -176,7 +176,10 @@ jobs: generate_release_notes: true release-build: - permissions: write-all # this is the FIX + permissions: write-all # this is the FIX + # permissions: # this is the FIX + # contents: write + # discussions: write needs: coverage runs-on: ubuntu-latest env: @@ -446,9 +449,6 @@ jobs: # This action allows you to select which files to upload to the just-tagged release. It runs on all operating systems types offered by GitHub. # https://github.com/svenstaro/upload-release-action - name: Upload binaries to release - permissions: # this is the FIX - contents: write - discussions: write uses: svenstaro/upload-release-action@v2 if: startsWith(github.ref, 'refs/tags/v') && env.ENABLE_Simple_Release == 0 with: