File tree Expand file tree Collapse file tree 2 files changed +15
-71
lines changed Expand file tree Collapse file tree 2 files changed +15
-71
lines changed Original file line number Diff line number Diff line change 11name : Build
22
3- on :
4- push :
5- branches : [ main ]
6- pull_request :
7- branches : [ main ]
3+ on : push
84
95jobs :
106
117 build :
128 runs-on : ubuntu-latest
139 steps :
1410 - name : Checkout code
15- uses : actions/checkout@v2
11+ uses : actions/checkout@v3
1612
1713 - name : Set up Go
18- uses : actions/setup-go@v2
14+ uses : actions/setup-go@v4
1915 with :
20- go-version : 1.20.5
16+ go-version : ' 1.20'
2117
2218 - name : Build for linux/amd64
2319 run : GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w" -o opt/munager_linux_amd64 .
2925 run : GOOS=android GOARCH=arm64 go build -v -ldflags="-s -w" -o opt/munager_android_arm64 .
3026
3127 - name : Upload compiled artifact
32- uses : actions/upload-artifact@v2
28+ uses : actions/upload-artifact@v3
3329 with :
3430 name : munager_executables
35- path : opt/
31+ path : opt/
32+
33+ - name : Release
34+ uses : softprops/action-gh-release@v1
35+ if : startsWith(github.ref, 'refs/tags/')
36+ with :
37+ files : |
38+ opt/munager_linux_amd64
39+ opt/munager_windows_amd64.exe
40+ opt/munager_android_arm64
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments