Skip to content

Commit

Permalink
chore(cd): add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mathcale committed Jun 25, 2024
1 parent 3254fa8 commit b33b018
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
release:
types: [created]

permissions:
contents: write
packages: write

jobs:
release-cross:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/cli"
binary_name: "setlist-to-playlist"
build_flags: "-trimpath"
ldflags: "-w -s -buildid="

0 comments on commit b33b018

Please sign in to comment.