Skip to content

Commit

Permalink
Merge pull request #48 from Kuadrant/publish-binary-on-release
Browse files Browse the repository at this point in the history
Publish binary on release
  • Loading branch information
eguzki authored Nov 23, 2023
2 parents 36b5f76 + 0e80646 commit 35c71a1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---

name: Release

on:
release:
types: [created]

permissions:
contents: write
packages: write

jobs:
release-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.21.4

0 comments on commit 35c71a1

Please sign in to comment.