27 lines
517 B
YAML
27 lines
517 B
YAML
|
name: Release
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- v*
|
||
|
jobs:
|
||
|
goreleaser:
|
||
|
runs-on: ubuntu-latest
|
||
|
defaults:
|
||
|
run:
|
||
|
shell: bash
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Install Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: 1.16
|
||
|
- name: Run GoReleaser
|
||
|
uses: goreleaser/goreleaser-action@v2
|
||
|
with:
|
||
|
args: release --rm-dist
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|