AT Protocol IPLD-CAR Repository toolkit (CLI)
1# .github/workflows/release.yaml
2
3on:
4 release:
5 types: [created]
6
7permissions:
8 contents: write
9 packages: write
10
11jobs:
12 releases-matrix:
13 name: Release Go Binary
14 runs-on: ubuntu-latest
15 strategy:
16 matrix:
17 # build and publish in parallel: linux/amd64, linux/arm64, windows/amd64, darwin/amd64, darwin/arm64
18 goos: [linux, windows, darwin]
19 goarch: [amd64, arm64]
20 exclude:
21 - goarch: arm64
22 goos: windows
23 steps:
24 - uses: actions/checkout@v3
25 - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26 - uses: wangyoucao577/go-release-action@v1
27 with:
28 github_token: ${{ secrets.PAT }}
29 goos: ${{ matrix.goos }}
30 goarch: ${{ matrix.goarch }}
31 ldflags: "-X main._version=${{ env.RELEASE_VERSION }}"
32 sha256sum: true
33 md5sum: false