From a7a0e77eae4e2af7ff309f97c40cbf85c533a216 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Wed, 27 Nov 2024 21:06:15 +0200 Subject: [PATCH] ci: add automatic release --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..f4b945d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.0 + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build and Release + uses: goreleaser/goreleaser-action@v6 + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}