Skip to content

Commit 7a5d4a6

Browse files
feat: Downloads for Linux, Mac and Windows
1 parent f6f345c commit 7a5d4a6

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ jobs:
99
strategy:
1010
matrix:
1111
target:
12-
- { name: windows64, GOOS: windows }
12+
- { name: linux-x86_64, GOOS: linux, GOARCH: amd64 }
13+
- { name: mac-x86_64, GOOS: darwin, GOARCH: amd64 }
14+
- { name: mac-arm64, GOOS: darwin, GOARCH: arm64 }
15+
- { name: win64, GOOS: windows, GOARCH: amd64 }
16+
- { name: win32, GOOS: windows, GOARCH: 386 }
1317
steps:
1418
- uses: actions/checkout@v2
1519
- run: mkdir -p release/${{ matrix.target.name }}
@@ -19,6 +23,7 @@ jobs:
1923
env:
2024
GO_VERSION: 1.17.8
2125
GOOS: ${{ matrix.target.GOOS }}
26+
GOARCH: ${{ matrix.target.GOARCH }}
2227
run: |
2328
bin/dockerized go build -o release/${{ matrix.target.name }}/bin/ lib/dockerized.go
2429
- name: Zip

release.config.js

+25-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,31 @@ module.exports = {
55
"@semantic-release/release-notes-generator",
66
["@semantic-release/github", {
77
"assets": [
8-
{"path": "release/windows64.zip", "label": "Windows (64bit)", "name": "dockerized-${nextRelease.gitTag}-win64.zip"},
8+
{
9+
"path": "release/win32.zip",
10+
"label": "Windows (32bit)",
11+
"name": "dockerized-${nextRelease.gitTag}-win32.zip"
12+
},
13+
{
14+
"path": "release/win64.zip",
15+
"label": "Windows (64bit)",
16+
"name": "dockerized-${nextRelease.gitTag}-win64.zip"
17+
},
18+
{
19+
"path": "release/linux-x86_64.zip",
20+
"label": "Linux (x86/64)",
21+
"name": "dockerized-${nextRelease.gitTag}-linux-x86_64.zip"
22+
},
23+
{
24+
"path": "release/mac-x86_64.zip",
25+
"label": "MacOS (Intel)",
26+
"name": "dockerized-${nextRelease.gitTag}-mac-x86_64.zip"
27+
},
28+
{
29+
"path": "release/mac-arm64.zip",
30+
"label": "MacOS (Apple Silicon)",
31+
"name": "dockerized-${nextRelease.gitTag}-mac-arm64.zip"
32+
},
933
]
1034
}],
1135
'@semantic-release/changelog',

0 commit comments

Comments
 (0)