Skip to content

Commit 07fd868

Browse files
committed
Create release.yml
1 parent 6b6a44c commit 07fd868

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release DockDiver Binaries
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
name: Release Go Binary
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
goos: [linux, windows, darwin, freebsd]
17+
goarch: [386, amd64, arm, arm64]
18+
exclude:
19+
- goos: darwin
20+
goarch: 386
21+
- goos: darwin
22+
goarch: arm
23+
- goos: windows
24+
goarch: arm
25+
- goos: windows
26+
goarch: arm64
27+
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v4
31+
32+
- name: Set Up Go
33+
uses: actions/setup-go@v5
34+
with:
35+
go-version: "1.24.1"
36+
37+
- name: Build and Release
38+
uses: wangyoucao577/go-release-action@v1
39+
with:
40+
github_token: ${{ secrets.RELEASE_TOKEN }}
41+
goos: ${{ matrix.goos }}
42+
goarch: ${{ matrix.goarch }}
43+
project_path: "."
44+
binary_name: "dockdiver"
45+
extra_files: "README.md LICENSE"
46+
md5sum: "TRUE"
47+
sha256sum: "TRUE"

0 commit comments

Comments
 (0)