Skip to content

Commit

Permalink
fix simple-release script and re-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Feb 17, 2024
1 parent 577ecc0 commit ac963c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.<job-id>.if, 'env' is not available !!
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ac963c2

Please sign in to comment.