From cfb5b7a53f0dce7d4296d8a8352d95c51c399221 Mon Sep 17 00:00:00 2001 From: Matt Schuchard Date: Mon, 18 Mar 2024 09:02:30 -0400 Subject: [PATCH] update gh release action for v1.0.0 release --- .github/workflows/release.yaml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4f8b3b9..79f362b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,17 +5,39 @@ on: release: types: [created] +permissions: + contents: write + packages: write + jobs: release-linux-amd64: - name: create linux amd64 release + name: create and publish vault-raft-backup release runs-on: ubuntu-latest + strategy: + matrix: + goos: + - linux + - windows + - darwin + goarch: + - '386' + - amd64 + - arm64 + exclude: + - goos: darwin + goarch: '386' + - goos: linux + goarch: '386' + - goos: windows + goarch: arm64 steps: - name: checkout uses: actions/checkout@v4 - - uses: wangyoucao577/go-release-action@v1.22 + - uses: wangyoucao577/go-release-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 - goversion: 1.21 + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: go.mod + ldflags: '-s -w' overwrite: true