File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,26 @@ name: Continuous Integration
13
13
14
14
on :
15
15
push :
16
- branches : [ main, develop ]
16
+ branches :
17
+ - main
18
+ - develop
17
19
pull_request :
18
- branches : [ main, develop ]
20
+ branches :
21
+ - main
22
+ - develop
23
+ release :
24
+ types :
25
+ - published
19
26
20
27
jobs :
21
28
build :
22
29
23
30
runs-on : ubuntu-latest
24
31
strategy :
25
32
matrix :
26
- python-version : [ '3.7', '3.10' ]
33
+ python-version :
34
+ - ' 3.7'
35
+ - ' 3.10'
27
36
28
37
steps :
29
38
- uses : actions/checkout@v2
65
74
# If this commit is the result of a Git tag, push the wheel and tar packages
66
75
# to the PyPi registry
67
76
- name : Publish to PyPI
68
- if : startsWith( github.ref, 'refs/tags')
77
+ if : github.event_name == 'release' && github.event.action == 'published'
69
78
run : twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*
You can’t perform that action at this time.
0 commit comments