Skip to content

Commit 777caa9

Browse files
committed
Update release workflow
1 parent 282bc08 commit 777caa9

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- uses: actions/checkout@v4
1315

1416
- name: Create Release with Auto-Generated Notes
15-
uses: actions/create-release@v1
17+
run: |
18+
gh release create ${{ github.ref_name }} \
19+
--title "Release ${{ github.ref_name }}" \
20+
--generate-notes
1621
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
with:
19-
tag_name: ${{ github.ref }}
20-
release_name: Release ${{ github.ref }}
21-
body: ${{ steps.release_notes.outputs.body }}
22-
draft: false
23-
prerelease: false
24-
generate_release_notes: true
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)