From 0374a64632f4f52bd04dc5f264429a4e3bbb517f Mon Sep 17 00:00:00 2001 From: Tristan Morgan Date: Mon, 11 Nov 2024 11:37:13 +1100 Subject: [PATCH] add GoReleaser workflow. --- .github/workflows/go-releaser.yml | 31 +++++++++++++++++++++++++++++++ .goreleaser.yml | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/go-releaser.yml diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml new file mode 100644 index 000000000..13ac961bc --- /dev/null +++ b/.github/workflows/go-releaser.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v5 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 714d16841..fe97157e5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 builds: - binary: fabio