File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - master
6- tags :
7- - v*
86 pull_request :
7+ release :
8+ types :
9+ - published
910defaults :
1011 run :
1112 working-directory : hcsctl
@@ -57,18 +58,26 @@ jobs:
5758 build/hcsctl uninstall ../hack/inventory/test-sample
5859 build/hcsctl uninstall ../hack/inventory/test-sample # idempotent
5960 ../hack/prolinux_cluster.sh down
60- release :
61- if : startsWith( github.ref, 'refs/tags/v')
61+ deploy :
62+ if : github.event_name == 'release'
6263 needs : [lint, build, e2e]
6364 runs-on : prolinux
6465 steps :
6566 - name : Upload hcsctl binary
66- uses : actions/upload-artifact@v1
67+ uses : actions/upload-release-asset@v1
68+ env :
69+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6770 with :
68- name : hcsctl
69- path : hcsctl/build/
71+ upload_url : ${{ github.event.release.upload_url }}
72+ asset_path : hcsctl/build/
73+ asset_name : hcsctl
74+ asset_content_type : application/octet-stream
7075 - name : Upload hcsctl.test binary
71- uses : actions/upload-artifact@v1
76+ uses : actions/upload-release-asset@v1
77+ env :
78+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7279 with :
73- name : hcsctl.test
74- path : hcsctl/build/
80+ upload_url : ${{ github.event.release.upload_url }}
81+ asset_path : hcsctl/build/
82+ asset_name : hcsctl.test
83+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments