File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build with goreleaser
2
+
3
+ on :
4
+ push :
5
+ branches : [ master, devel ]
6
+ tags :
7
+ - " *"
8
+ pull_request :
9
+ branches : [ master, devel ]
10
+
11
+ jobs :
12
+
13
+ build :
14
+ runs-on : ubuntu-20.04
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - uses : actions/setup-go@v4
18
+
19
+ - name : Build release
20
+ uses : goreleaser/goreleaser-action@v4
21
+ if : startsWith(github.ref, 'refs/tags/')
22
+ with :
23
+ version : latest
24
+ args : release --clean
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ - name : Build snapshot
29
+ uses : goreleaser/goreleaser-action@v4
30
+ if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
31
+ with :
32
+ version : latest
33
+ args : release --clean --snapshot
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+
37
+ - uses : actions/upload-artifact@v3
38
+ with :
39
+ name : PR-DNSd
40
+ path : dist/*
You can’t perform that action at this time.
0 commit comments