Skip to content

Commit

Permalink
Add workflow to create binary releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Bollos00 committed Dec 6, 2021
1 parent 2465242 commit 9b0ab4e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Template from https://github.com/BenjaminNavarro/docker-manager/blob/master/.github/workflows/release.yml

on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
goos: [linux, windows, darwin]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
pre_command: "go get -v -t -d ./... "

0 comments on commit 9b0ab4e

Please sign in to comment.