From e1c2ef83e442a7d7f8957318687f6b4085ff849b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 22 Jan 2024 20:20:52 -0300 Subject: [PATCH] release on github actions. --- .github/workflows/release.yml | 39 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d940fb3..32dd6b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,33 +1,42 @@ +name: build cli for all platforms + on: - release: - types: [created] + push: + tags: + - '*' permissions: contents: write - packages: write jobs: - releases-matrix: - name: Release Go Binary + 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: - # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 - goos: [linux, windows, darwin] - goarch: ["386", amd64, arm64] - name: ["send", "show"] + goos: [linux, freebsd, darwin, windows] + goarch: [amd64, arm64] exclude: - - goarch: "386" - goos: darwin - goarch: arm64 goos: windows steps: - uses: actions/checkout@v3 - - uses: wangyoucao577/go-release-action@v1 + - uses: wangyoucao577/go-release-action@v1.40 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} - project_path: "./src/apps/${{ matrix.name }}" - binary_name: "git-${{ matrix.name }}-nostr" - extra_files: LICENSE README.md + overwrite: true + md5sum: false + sha256sum: false + compress_assets: false