From b33b0187df5244760c9488063890225ee4f1519a Mon Sep 17 00:00:00 2001 From: Matheus Calegaro Date: Tue, 25 Jun 2024 00:49:24 -0300 Subject: [PATCH] chore(cd): add release workflow --- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..884c02d --- /dev/null +++ b/.github/workflows/release.yaml @@ -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="