Skip to content
Merged
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
17 changes: 13 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@ name: Continuous Integration

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

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.10' ]
python-version:
- '3.7'
- '3.10'

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -65,5 +74,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 == 'published'
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*