Skip to content

Commit

Permalink
chore: added release action file
Browse files Browse the repository at this point in the history
  • Loading branch information
forscht committed Apr 21, 2023
1 parent 497a282 commit 43e0753
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# .github/workflows/release.yaml

on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
- goarch: "386"
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.37
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./watt"
binary_name: "watt"
extra_files: LICENSE README.md

0 comments on commit 43e0753

Please sign in to comment.