File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change 66 - master
77 - feature/ci
88
9- pull_request :
10-
11- create :
129 tags :
10+ - v[0-9]+.*
11+ - testing-ci.*
12+
13+ pull_request :
1314
1415jobs :
1516 lint :
4950 run : cargo test --all
5051
5152 build-bin :
52- if : github.event_name == 'create ' && github.event.ref_type == 'tag'
53+ if : github.event_name == 'push ' && startsWith( github.event.ref, 'refs/tags/')
5354
5455 name : Build binary package
5556 runs-on : ubuntu-16.04
7576 path : release
7677
7778 build-deb :
78- if : github.event_name == 'create ' && github.event.ref_type == 'tag'
79+ if : github.event_name == 'push ' && startsWith( github.event.ref, 'refs/tags/')
7980
8081 name : Build deb package
8182 runs-on : ubuntu-16.04
@@ -114,3 +115,30 @@ jobs:
114115 with :
115116 name : debian-latest
116117 path : release
118+
119+ release :
120+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
121+
122+ name : Publish release
123+ needs : [build-bin, build-deb]
124+ runs-on : ubuntu-latest
125+
126+ steps :
127+ - name : Download binary artifacts
128+ uses : actions/download-artifact@v1
129+ with :
130+ name : binary-latest
131+
132+ - name : Download Debian artifacts
133+ uses : actions/download-artifact@v1
134+ with :
135+ name : debian-latest
136+
137+ - name : Upload assets
138+ uses : svenstaro/upload-release-action@v1-release
139+ with :
140+ repo_token : ${{ secrets.GITHUB_TOKEN }}
141+ file : ./*-latest/*
142+ tag : ${{ github.ref }}
143+ overwrite : true
144+ file_glob : true
You can’t perform that action at this time.
0 commit comments