Skip to content

Commit f11bcb2

Browse files
committed
tools: update release workflow to use gh CLI
1 parent b489dfa commit f11bcb2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/create-release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ jobs:
2828
runs-on: ubuntu-latest
2929
needs: publish
3030
steps:
31-
- name: Create Release Notes
32-
uses: actions/github-script@v4.0.2
33-
with:
34-
github-token: ${{secrets.GITHUB_TOKEN}}
35-
script: |
36-
await github.request(`POST /repos/${{ github.repository }}/releases`, {
37-
tag_name: "${{ github.ref }}",
38-
generate_release_notes: true
39-
});
31+
- name: Checkout code
32+
uses: actions/checkout@v3
33+
- name: Create Release
34+
run: gh release create ${{ github.ref }} --generate-notes
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)