github action to publish the cli binaries.

This commit is contained in:
fiatjaf 2023-10-29 21:53:32 -03:00
parent bf966b3e2c
commit 85d658bdd4
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
2 changed files with 39 additions and 0 deletions

39
.github/workflows/release-cli.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: build cli for all platforms
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
build-all-for-all:
runs-on: ubuntu-latest
needs:
- make-release
strategy:
matrix:
goos: [linux, freebsd, darwin, windows]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true