From ea34fcf8105f5dbe928638af914c588fa5b65658 Mon Sep 17 00:00:00 2001 From: s1ntaxe770r Date: Sat, 13 Mar 2021 22:59:58 +0100 Subject: [PATCH] updates goreleaser --- .github/workflows/goreleaser.yml | 40 +++++++++++++++++--------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 88edf8d..04f7ac1 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,27 +1,29 @@ name: release + on: -push: -branches: + push: + branches: - master -tags: + tags: - '*' + jobs: -goreleaser: -runs-on: ubuntu-latest -steps: + goreleaser: + runs-on: ubuntu-latest + steps: - name: Checkout Repository -uses: actions/checkout@v2 -with: -fetch-depth: 0 + uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Go -uses: actions/setup-go@v2 -with: -go-version: 1.16 + uses: actions/setup-go@v2 + with: + go-version: 1.16 - name: Run goreleaser -uses: goreleaser/goreleaser-action@v2 -if: startsWith(github.ref, 'refs/tags/') -with: -version: latest -args: release --rm-dist -env: -GITHUB_TOKEN: ${{ secrets.GR_TOKEN }} \ No newline at end of file + uses: goreleaser/goreleaser-action@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GORELEASER_PAT }} \ No newline at end of file