Skip to content

Commit f5967ff

Browse files
committed
fix: update release workflow to use softprops/action-gh-release and set permissions
1 parent a6c64cd commit f5967ff

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,18 @@ jobs:
6464
needs: build
6565
runs-on: ubuntu-latest
6666
if: startsWith(github.ref, 'refs/tags/v')
67+
permissions:
68+
contents: write
6769
steps:
6870
- name: Download all artifacts
6971
uses: actions/download-artifact@v4
7072
with:
7173
path: artifacts
7274

7375
- name: Create release
74-
uses: actions/create-release@v1
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
uses: softprops/action-gh-release@v2
7777
with:
78-
tag_name: ${{ github.ref }}
79-
release_name: Release ${{ github.ref }}
78+
files: artifacts/**/*
8079
draft: false
8180
prerelease: false
8281
body: |

0 commit comments

Comments
 (0)