Skip to content

Commit 6729e02

Browse files
build: upload as separate files
1 parent 4b87d4c commit 6729e02

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/build-common.yml

+33-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,38 @@ jobs:
2828
GOOS=darwin GOARCH=amd64 go build -o x2i-macos-amd64 x2i.go
2929
GOOS=darwin GOARCH=arm64 go build -o x2i-macos-arm64 x2i.go
3030
31-
- name: Upload build artifacts
31+
- name: Upload Linux AMD64
3232
uses: actions/upload-artifact@v4
3333
with:
34-
name: x2i-binaries
35-
path: x2i-*
34+
name: x2i-linux-amd64
35+
path: x2i-linux-amd64
36+
37+
- name: Upload Linux ARM64
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: x2i-linux-arm64
41+
path: x2i-linux-arm64
42+
43+
- name: Upload Windows 386
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: x2i-windows-386
47+
path: x2i-windows-386.exe
48+
49+
- name: Upload Windows AMD64
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: x2i-windows-amd64
53+
path: x2i-windows-amd64.exe
54+
55+
- name: Upload macOS AMD64
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: x2i-macos-amd64
59+
path: x2i-macos-amd64
60+
61+
- name: Upload macOS ARM64
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: x2i-macos-arm64
65+
path: x2i-macos-arm64

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626

2727
- uses: ncipollo/[email protected]
2828
with:
29-
artifacts: "x2i-*"
29+
artifacts: "x2i-*/*"
3030
body: "Release ${{ steps.tagName.outputs.tag }}"

0 commit comments

Comments
 (0)