File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build
22
3- on :
4- push :
5- branches :
6- - master
3+ on : push
74
85jobs :
96 release :
1310 steps :
1411 - name : Create draft release
1512 uses : actions/github-script@0.9.0
13+ if : github.ref == 'refs/heads/master'
1614 with :
1715 github-token : ${{secrets.GITHUB_TOKEN}}
1816 script : |
3533
3634 - name : Upload release-info
3735 uses : actions/upload-artifact@v1
36+ if : github.ref == 'refs/heads/master'
3837 with :
3938 name : release-info
4039 path : release-info
@@ -62,11 +61,13 @@ jobs:
6261
6362 - name : Download release-info
6463 uses : actions/download-artifact@v1
64+ if : github.ref == 'refs/heads/master'
6565 with :
6666 name : release-info
6767
6868 - name : Upload ${{ matrix.wheel }}
6969 uses : actions/github-script@0.9.0
70+ if : github.ref == 'refs/heads/master'
7071 with :
7172 github-token : ${{secrets.GITHUB_TOKEN}}
7273 script : |
99100 name : Publish
100101 runs-on : ubuntu-latest
101102 needs : build
103+ if : github.ref == 'refs/heads/master'
102104
103105 steps :
104106 - name : Download release-info
You can’t perform that action at this time.
0 commit comments