Skip to content

Commit 927f456

Browse files
authored
Merge pull request #6 from osmhpi/ci-on-every-branch
run CI builds for every branch
2 parents cbf87b6 + 6eec2c8 commit 927f456

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build
22

3-
on:
4-
push:
5-
branches:
6-
- master
3+
on: push
74

85
jobs:
96
release:
@@ -13,6 +10,7 @@ jobs:
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: |
@@ -35,6 +33,7 @@ jobs:
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: |
@@ -99,6 +100,7 @@ jobs:
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

0 commit comments

Comments
 (0)