From 85d658bdd48cd27b73796f9030537b31a801ef0b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 29 Oct 2023 21:53:32 -0300 Subject: [PATCH] github action to publish the cli binaries. --- .../{publish.yml => publish-webapp.yml} | 0 .github/workflows/release-cli.yml | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+) rename .github/workflows/{publish.yml => publish-webapp.yml} (100%) create mode 100644 .github/workflows/release-cli.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish-webapp.yml similarity index 100% rename from .github/workflows/publish.yml rename to .github/workflows/publish-webapp.yml diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml new file mode 100644 index 0000000..005288f --- /dev/null +++ b/.github/workflows/release-cli.yml @@ -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