From 76162ccab3cd62e165e1bd7c852ad5e8f481a27e Mon Sep 17 00:00:00 2001 From: "Mariano Z." Date: Thu, 22 Aug 2024 16:22:52 -0300 Subject: [PATCH] chore: add github actions for autorelease --- .github/workflows/releaser.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/releaser.yaml diff --git a/.github/workflows/releaser.yaml b/.github/workflows/releaser.yaml new file mode 100644 index 0000000..13ac961 --- /dev/null +++ b/.github/workflows/releaser.yaml @@ -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 }}