Skip to content

Commit d5e171c

Browse files
committed
Only run publish job in CI on tag pushes
1 parent b4afc2a commit d5e171c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
isort . --check-only
8282
8383
publish:
84+
if: startsWith(github.ref, 'refs/tags/')
8485
runs-on: ubuntu-latest
8586
needs: [test, lint-black, lint-isort]
8687
environment: pypi

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
- Restrict GitHub Actions push trigger to main branches and release tags (@marteinn)
2121
- Pin isort to specific version in CI (@marteinn)
2222
- Fix broken jQuery selector in PolyfillColorInputWidget caused by missing # prefix after XSS fix (@marteinn)
23+
- Only run publish job in CI on tag pushes (@marteinn)
2324

2425
### Removed
2526
- Drop support for EOL python 3.9 (@marteinn)

0 commit comments

Comments
 (0)