Skip to content

Commit efdc18c

Browse files
committed
💚 Use another action to upload release
1 parent 2de4d42 commit efdc18c

File tree

2 files changed

+15
-71
lines changed

2 files changed

+15
-71
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
name: Build
22

3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
3+
on: push
84

95
jobs:
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 .
@@ -29,7 +25,16 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)