File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
3
- on :
4
- push :
5
- branches :
6
- - master
3
+ on : push
7
4
8
5
jobs :
9
6
release :
13
10
steps :
14
11
- name : Create draft release
15
12
uses : actions/github-script@0.9.0
13
+ if : github.ref == 'refs/heads/master'
16
14
with :
17
15
github-token : ${{secrets.GITHUB_TOKEN}}
18
16
script : |
35
33
36
34
- name : Upload release-info
37
35
uses : actions/upload-artifact@v1
36
+ if : github.ref == 'refs/heads/master'
38
37
with :
39
38
name : release-info
40
39
path : release-info
@@ -62,11 +61,13 @@ jobs:
62
61
63
62
- name : Download release-info
64
63
uses : actions/download-artifact@v1
64
+ if : github.ref == 'refs/heads/master'
65
65
with :
66
66
name : release-info
67
67
68
68
- name : Upload ${{ matrix.wheel }}
69
69
uses : actions/github-script@0.9.0
70
+ if : github.ref == 'refs/heads/master'
70
71
with :
71
72
github-token : ${{secrets.GITHUB_TOKEN}}
72
73
script : |
99
100
name : Publish
100
101
runs-on : ubuntu-latest
101
102
needs : build
103
+ if : github.ref == 'refs/heads/master'
102
104
103
105
steps :
104
106
- name : Download release-info
You can’t perform that action at this time.
0 commit comments