File tree Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Expand file tree Collapse file tree 3 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 12
12
with :
13
13
go-version : ' 1.16'
14
14
- name : Run build
15
- run : |
16
- go build .
15
+ run : go build .
16
+ - name : upload artifact of build output
17
+ uses : actions/upload-artifact@v2
18
+ with :
19
+ name : build
20
+ path : worker
17
21
18
22
lint :
19
23
runs-on : ubuntu-latest
@@ -44,11 +48,18 @@ jobs:
44
48
steps :
45
49
- name : Checkout
46
50
uses : actions/checkout@v2
51
+ - name : Download build artifact
52
+ uses : actions/download-artifact@v2
53
+ with :
54
+ name : build
55
+ path : .
56
+ - name : Create release archive
57
+ run : tar -czvf release.tar.gz worker README.md LICENSE
47
58
- name : Setup Node.js
48
59
uses : actions/setup-node@v2
49
60
with :
50
61
node-version : 14
51
62
- name : Release
52
63
env :
53
- GITHUB_TOKEN : ${{ secrets.TOKEN }}
64
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
65
run : npx semantic-release
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
"plugins" : [
6
6
" @semantic-release/commit-analyzer" ,
7
7
" @semantic-release/release-notes-generator" ,
8
- " @semantic-release/github"
8
+ [
9
+ " @semantic-release/github" ,
10
+ {
11
+ "successComment" : false ,
12
+ "releasedLabels" : false ,
13
+ "assets" : [
14
+ {
15
+ "path" : " release.tar.gz" ,
16
+ "name" : " worker-${nextRelease.gitTag}-linux-amd64.tar.gz" ,
17
+ "label" : " worker-${nextRelease.gitTag}-linux-amd64.tar.gz"
18
+ }
19
+ ]
20
+ }
21
+ ]
9
22
]
10
23
}
You can’t perform that action at this time.
0 commit comments