From 11d4b7b9ab1be292a23a02c5527acf9b2e3761f9 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Tue, 26 Nov 2024 14:01:12 -0500 Subject: [PATCH] Automate releases --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..343c70c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Install GoReleaser + run: go install github.com/goreleaser/goreleaser@latest + + - name: Build and Release + run: goreleaser release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}