File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,17 @@ name: Build and release
33on :
44 push :
55 branches : [master]
6- tags :
7- - " *"
86 pull_request :
97 branches : [master]
8+ release :
9+ types : [published]
1010
1111jobs :
1212 Test :
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
1616 python-version : [2.7, 3.6]
17-
1817 steps :
1918 - name : Checkout
2019 uses : actions/checkout@v2
@@ -41,12 +40,12 @@ jobs:
4140 ./run-tests.sh
4241
4342 - name : Build package
44- if : ${{ success() && github.event_name == 'push ' && matrix.python-version == '3.6' }}
43+ if : ${{ success() && github.event_name == 'release ' && matrix.python-version == '3.6' }}
4544 run : |
4645 python setup.py sdist bdist_wheel
4746
4847 - name : Publish package
49- if : ${{ success() && github.event_name == 'push ' && matrix.python-version == '3.6' }}
48+ if : ${{ success() && github.event_name == 'release ' && matrix.python-version == '3.6' }}
50495150 with :
5251 user : __token__
You can’t perform that action at this time.
0 commit comments