File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : golang-build-actions-workflow
2
+ on :
3
+ push :
4
+ # Sequence of patterns matched against refs/tags
5
+ tags :
6
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : windows-latest
11
+ env :
12
+ targetZip : ${{ github.event.repository.name }}-${{ github.ref_name }}.zip
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Setup go
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : ' 1.17.5' # The Go version to download (if necessary) and use.
20
+
21
+ - run : go get .
22
+
23
+ - run : go build
24
+
25
+ - name : Archive Release
26
+ uses : thedoctor0/zip-release@master
27
+ with :
28
+ type : ' zip'
29
+ path : ${{ github.event.repository.name }}.exe
30
+ filename : " ${{ env.targetZip }}"
31
+
32
+ - name : Release prebuilt
33
+ uses : ncipollo/release-action@v1
34
+ with :
35
+ artifacts : " ${{ env.targetZip }}"
36
+ allowUpdates : true
37
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments