From 652531f191fdc1572e250f210e427591f5c77a01 Mon Sep 17 00:00:00 2001 From: eikendev Date: Sun, 13 Feb 2022 21:07:21 +0100 Subject: [PATCH] Add configuration for GoReleaser --- .github/workflows/publish.yml | 9 +++++++++ .goreleaser.yml | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 444e5bc..cc69713 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -58,3 +58,12 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..144bdc2 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,19 @@ +builds: + - id: pushbits + main: ./cmd/pushbits + goos: + - linux + goarch: + - amd64 + - 386 + - arm + - arm64 + +checksum: + algorithm: sha256 + +archives: + - id: pushbits + builds: + - pushbits + format: tar.gz