From be33465c9cb77d42556f24f5594480332c5b6777 Mon Sep 17 00:00:00 2001 From: Samuel Luiz <97702597+samluiz@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:31:35 -0300 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..084c844 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: goreleaser + +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Checkout + with: + fetch-depth: 0 + - name: Set up Go + - uses: actions/setup-go@v5 + with: + go-version-file: './go.mod' + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GIT_TAG: $GITHUB_REF_NAME + GO_VERSION: ${{ steps.go-version.outputs.minimal }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}