From fcfe1d04632196f32d8177bba5165bef7c964136 Mon Sep 17 00:00:00 2001 From: anonderpling <125647602+anonderpling@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:32:09 +0000 Subject: [PATCH] Create go-releaser.yml --- .github/workflows/go-releaser.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000..b43c209 --- /dev/null +++ b/.github/workflows/go-releaser.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + push: + workflow_dispatch: + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v3 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}