24 lines
543 B
YAML
24 lines
543 B
YAML
|
name: release
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- '*'
|
||
|
jobs:
|
||
|
goreleaser:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: check out
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Unshallow
|
||
|
run: git fetch --prune --unshallow
|
||
|
- name: set up Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: 1.14
|
||
|
- name: run goreleaser
|
||
|
uses: goreleaser/goreleaser-action@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
args: release --rm-dist
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|