forked from cerc-io/laconicd-deprecated
ci: add goreleaser workflow (#295)
Closes #305 patch panicwrap to fix build issue Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
3cb469e7ee
commit
c8ddb503c1
@@ -0,0 +1,26 @@
|
||||
name: Release
|
||||
# This workflow helps with creating releases.
|
||||
# This job will only be triggered when a tag (vX.X.x) is pushed
|
||||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2.1.3
|
||||
with:
|
||||
go-version: 1.16
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
- name: Create release
|
||||
uses: goreleaser/goreleaser-action@v2.6.1
|
||||
with:
|
||||
args: release --rm-dist --release-notes ./RELEASE_CHANGELOG.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user