Skip to content

Commit

Permalink
updates goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ntaxe770r committed Mar 13, 2021
1 parent 9a17aed commit ea34fcf
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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 }}
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_PAT }}

0 comments on commit ea34fcf

Please sign in to comment.