Commit 2cff0f3 1 parent 0b0fdc4 commit 2cff0f3 Copy full SHA for 2cff0f3
File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Build Go binaries for release
1
+ name : Build Go binaries and upload to release
2
2
3
3
on :
4
4
release :
13
13
strategy :
14
14
matrix :
15
15
goos : [linux, darwin]
16
- goarch : [amd64, arm64] # You can modify this if you want other architectures like ARM
16
+ goarch : [amd64, arm64]
17
17
18
18
steps :
19
19
- name : Checkout code
@@ -22,14 +22,16 @@ jobs:
22
22
- name : Set up Go
23
23
uses : actions/setup-go@v4
24
24
with :
25
- go-version : ' 1.22.6' # Set to Go version 1.22.6
26
-
25
+ go-version : ' 1.22.6'
26
+
27
27
- name : Build binary
28
28
run : |
29
- GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/${{ matrix.goos }}-${{ matrix.goarch }}/weave
29
+ GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/weave- ${{ matrix.goos }}-${{ matrix.goarch }}
30
30
31
- - name : Upload binaries
32
- uses : actions/upload-artifact@v3
31
+ - name : Upload binaries to GitHub release
32
+ uses : actions/upload-release-asset@v1
33
33
with :
34
- name : ${{ matrix.goos }}-${{ matrix.goarch }}-binary
35
- path : build/${{ matrix.goos }}-${{ matrix.goarch }}/weave
34
+ upload_url : ${{ github.event.release.upload_url }}
35
+ asset_path : build/weave-${{ matrix.goos }}-${{ matrix.goarch }}
36
+ asset_name : weave-${{ matrix.goos }}-${{ matrix.goarch }}
37
+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments