Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit dc25383

Browse files
authored
create release build file
1 parent 8002957 commit dc25383

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: docker build
22

33
on:
4-
push:
5-
branches:
6-
- "release"
4+
release:
5+
types: [created]
76

87
jobs:
98
docker:

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release build
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
14+
goos: [linux, windows, darwin]
15+
goarch: ["386", amd64, arm64]
16+
exclude:
17+
- goarch: "386"
18+
goos: darwin
19+
- goarch: arm64
20+
goos: windows
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: wangyoucao577/go-release-action@v1.32
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
goos: ${{ matrix.goos }}
27+
goarch: ${{ matrix.goarch }}
28+
goversion: "https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz"
29+
project_path: "./src"
30+
binary_name: "ocean"

0 commit comments

Comments
 (0)