Skip to content

Commit 0d3988f

Browse files
committed
ci: Create GitHub release before publishing to PyPI.
The GitHub release is now created as a draft release only.
1 parent 07c5a0b commit 0d3988f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,14 @@ jobs:
208208
bodyFile: release-notes.md
209209
prerelease: ${{ needs.build.outputs.prerelease }}
210210
token: ${{ secrets.GITHUB_TOKEN }}
211+
allowUpdates: true
212+
draft: true
213+
skipIfReleaseExists: true
211214

212215
publish-test-pypi:
213216
name: Publish packages to test.pypi.org
214217
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
215-
needs: [build, lint, check]
218+
needs: [build, lint, check, create-github-release]
216219
runs-on: ubuntu-latest
217220
permissions:
218221
id-token: write
@@ -231,7 +234,7 @@ jobs:
231234
name: Publish packages to pypi.org
232235
environment: release
233236
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
234-
needs: [build, lint, check]
237+
needs: [build, lint, check, create-github-release]
235238
runs-on: ubuntu-latest
236239
permissions:
237240
id-token: write

0 commit comments

Comments
 (0)