Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/cicd.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,9 +13,16 @@ name: Continuous Integration

on:
push:
branches: [ main, develop ]
branches:
- main
- develop
pull_request:
branches: [ main, develop ]
branches:
- main
- develop
release:
types:
- published

jobs:
build:
Expand DownExpand Up@@ -65,5 +72,5 @@ jobs:
# If this commit is the result of a Git tag, push the wheel and tar packages
# to the PyPi registry
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'release' && github.event.action == 'created'
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*