Skip to content

Commit 70dba30

Browse files
Merge pull request #59 from casework/update-release-process2
Update Release Process
2 parents 562158f + 828b19d commit 70dba30

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/cicd.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,26 @@ name: Continuous Integration
1313

1414
on:
1515
push:
16-
branches: [ main, develop ]
16+
branches:
17+
- main
18+
- develop
1719
pull_request:
18-
branches: [ main, develop ]
20+
branches:
21+
- main
22+
- develop
23+
release:
24+
types:
25+
- published
1926

2027
jobs:
2128
build:
2229

2330
runs-on: ubuntu-latest
2431
strategy:
2532
matrix:
26-
python-version: [ '3.7', '3.10' ]
33+
python-version:
34+
- '3.7'
35+
- '3.10'
2736

2837
steps:
2938
- uses: actions/checkout@v2
@@ -65,5 +74,5 @@ jobs:
6574
# If this commit is the result of a Git tag, push the wheel and tar packages
6675
# to the PyPi registry
6776
- name: Publish to PyPI
68-
if: startsWith(github.ref, 'refs/tags')
77+
if: github.event_name == 'release' && github.event.action == 'published'
6978
run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*

0 commit comments

Comments
 (0)