use gh for publishing release

This commit is contained in:
wusatosi 2023-04-17 17:23:12 -04:00
parent 72602a5f4d
commit df6614bbff
No known key found for this signature in database
GPG Key ID: 2721B215244B24CE

View File

@ -342,8 +342,7 @@ jobs:
run: >
cat release/release.env >> $GITHUB_ENV
- name: Publish release
run: >
curl -XPATCH
"-HAuthorization: Bearer ${{ secrets.RELEASE_TOKEN }}"
"https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}"
"-d" '{"draft": false}'
run: gh release edit ${{ env.TAG_NAME }} --draft=false
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GH_REPO: ${{ github.repository }}