2020-05-23 09:09:56 +03:00
|
|
|
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:
|
2023-04-23 17:17:21 +03:00
|
|
|
go-version: 1.18
|
2020-05-23 09:09:56 +03:00
|
|
|
- name: run goreleaser
|
2022-06-11 10:19:14 +03:00
|
|
|
uses: goreleaser/goreleaser-action@v3
|
2020-05-23 09:09:56 +03:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
2023-04-23 17:17:21 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|