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