From a61ac424007c3fac32441819df5960d0959e4259 Mon Sep 17 00:00:00 2001 From: Alvaro Tinoco Date: Wed, 29 Dec 2021 15:29:54 +0100 Subject: [PATCH] ci(goreleaser): run on new tag --- .github/workflows/goreleaser.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a977d77..fce2e70 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -2,28 +2,34 @@ name: goreleaser on: workflow_dispatch: - release: + push: + tags: + - '*' + +permissions: + contents: write jobs: goreleaser: runs-on: ubuntu-latest steps: - - name: Checkout + - + name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Set up Go + - + name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.17 - - name: Run GoReleaser + - + name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: --rm-dist --skip-validate + args: release --rm-dist --skip-validate env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file