Skip to content

Commit b0963c2

Browse files
committed
Add Go binary release workflow
1 parent f81c887 commit b0963c2

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
on:
16+
release:
17+
types: [created]
18+
name: Go Binary Release
19+
jobs:
20+
releases-matrix:
21+
name: Release HarbourBridge Binary
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
26+
goos: [linux, darwin]
27+
goarch: [amd64]
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: wangyoucao577/go-release-action@v1.28
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
goos: ${{ matrix.goos }}
34+
goarch: ${{ matrix.goarch }}
35+
project_path: "."
36+
extra_files: LICENSE README.md
37+
asset_name: "harbourbridge_${{ matrix.goos }}_${{ matrix.goarch }}-${{ github.ref_name }}"

0 commit comments

Comments
 (0)