-
Notifications
You must be signed in to change notification settings - Fork 5
ci: publish on tag push instead of the release event #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,15 @@ | |
|
|
||
| name: python-publish | ||
|
|
||
| # Triggered by the tag push itself, not by the GitHub Release. | ||
| # python-packages.yml creates that Release using GITHUB_TOKEN, and GitHub's | ||
| # anti-recursion rule means events produced by GITHUB_TOKEN never start another | ||
| # workflow — so `release: published` silently never fired here and the package | ||
| # was never uploaded, while every other check went green. | ||
| on: | ||
| release: | ||
| types: [published] | ||
| push: | ||
| tags: | ||
| - "v[0-9]+*" | ||
|
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1 Badge Gate PyPI publishing on the GitHub release On a version-tag push this workflow now runs independently of Useful? React with 👍 / 👎. |
||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
|
|
@@ -20,7 +26,7 @@ jobs: | |
| deploy: | ||
| if: >- | ||
| github.repository == 'WaveSpeedAI/wavespeed-python' && | ||
| ((github.event_name == 'release' && github.ref_type == 'tag' && | ||
| ((github.event_name == 'push' && github.ref_type == 'tag' && | ||
| startsWith(github.ref, 'refs/tags/v')) || | ||
| (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')) | ||
| runs-on: ubuntu-latest | ||
|
|
||