File tree Expand file tree Collapse file tree 5 files changed +83
-234
lines changed Expand file tree Collapse file tree 5 files changed +83
-234
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ branches :
4+ - master
5+ push :
6+ branches :
7+ - " master"
8+ tags :
9+ - " v*.*.*"
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-18.04
14+ steps :
15+ - uses : actions/setup-go@v1
16+ with :
17+ go-version : " 1.12.14"
18+
19+ - name : setup env
20+ run : |
21+ echo "::set-env name=GOPATH::$(go env GOPATH)"
22+ echo "::add-path::$(go env GOPATH)/bin"
23+ shell : bash
24+
25+ - uses : actions/checkout@v2
26+
27+ - run : make
28+
29+ compile-preflight :
30+ runs-on : ubuntu-latest
31+ needs : build
32+ steps :
33+ - uses : actions/setup-go@v1
34+ with :
35+ go-version : ' 1.12.14'
36+ - name : setup env
37+ run : |
38+ echo "::set-env name=GOPATH::$(go env GOPATH)"
39+ echo "::add-path::$(go env GOPATH)/bin"
40+ shell : bash
41+ - uses : actions/checkout@master
42+ - run : make preflight
43+ - uses : actions/upload-artifact@v1
44+ with :
45+ name : preflight
46+ path : bin/preflight
47+
48+ validate-preflight :
49+ runs-on : ubuntu-latest
50+ needs : compile-preflight
51+ steps :
52+ - name : Download preflight binary
53+ uses : actions/download-artifact@v1
54+ with :
55+ name : preflight
56+ path : bin/
57+ -
uses :
engineerd/[email protected] 58+ - run : chmod +x bin/preflight
59+ - run : bin/preflight --interactive=false --format=json https://preflight.replicated.com
60+
61+ goreleaser :
62+ runs-on : ubuntu-latest
63+ needs :
64+ - validate-preflight
65+ if : startsWith(github.ref, 'refs/tags/v')
66+ steps :
67+ - name : Checkout
68+ uses : actions/checkout@v2
69+
70+ - name : Unshallow
71+ run : git fetch --prune --unshallow
72+
73+ - uses : actions/setup-go@v1
74+ with :
75+ go-version : " 1.12.14"
76+
77+ - name : Run GoReleaser
78+ uses : goreleaser/goreleaser-action@v1
79+ with :
80+ version : latest
81+ args : release --rm-dist --config deploy/.goreleaser.yaml
82+ env :
83+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments