mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-07 10:54:20 +01:00
[CI] prevent pypi upload on pre-releases (#520)
* prevent pypi upload on pre-releases * only on release
This commit is contained in:
4
.github/workflows/pypi.yaml
vendored
4
.github/workflows/pypi.yaml
vendored
@@ -3,7 +3,7 @@ name: Pip package
|
||||
on:
|
||||
push:
|
||||
release:
|
||||
types: [published]
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@@ -30,6 +30,6 @@ jobs:
|
||||
pip install --upgrade dist/*.whl
|
||||
|
||||
- name: Upload to PyPI on release
|
||||
if: github.event_name == 'release'
|
||||
if: github.event_name == 'release' && github.event.action == 'released'
|
||||
run: |
|
||||
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user