Skip to content

Commit 2e8b88f

Browse files
committed
ci: Publish the GitHub release after uploading the release artifacts to PyPI.
1 parent 8a2f148 commit 2e8b88f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ jobs:
252252
needs: [build, lint, check, create-github-release]
253253
runs-on: ubuntu-latest
254254
permissions:
255+
contents: write
255256
id-token: write
256257
steps:
257258
- name: Download distributions
@@ -264,3 +265,10 @@ jobs:
264265
tree dist
265266
- name: PyPI upload
266267
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
268+
- name: Publish GitHub Release
269+
env:
270+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
271+
run: |
272+
set +e
273+
TAG_NAME="${GITHUB_REF#refs/tags/}"
274+
gh release edit "${TAG_NAME}" --draft=false

0 commit comments

Comments
 (0)