Skip to content

Commit

Permalink
Add release GHA (0xPolygonHermez#947)
Browse files Browse the repository at this point in the history
* Add release GHA

* Update .github/workflows/release.yml

Co-authored-by: Federico Gimenez <[email protected]>

Co-authored-by: Federico Gimenez <[email protected]>
  • Loading branch information
arnaubennassar and fgimenez authored Jul 28, 2022
1 parent df7eeb5 commit ed99a96
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

on:
push:
tags:
- 'v*.*.*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Get packr
run: go get -u github.com/gobuffalo/packr/v2/packr2
- name: Prepare
run: git reset --hard
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE }}

0 comments on commit ed99a96

Please sign in to comment.