| 1 |
name: Release |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- v[0-9]+.[0-9]+* |
| 7 |
|
| 8 |
env: |
| 9 |
GO_VERSION: stable |
| 10 |
|
| 11 |
jobs: |
| 12 |
|
| 13 |
release: |
| 14 |
name: Create a release |
| 15 |
runs-on: ubuntu-latest |
| 16 |
|
| 17 |
steps: |
| 18 |
- name: Check out code |
| 19 |
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
| 20 |
with: |
| 21 |
fetch-depth: 0 |
| 22 |
|
| 23 |
- name: Set up Go ${{ env.GO_VERSION }} |
| 24 |
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff |
| 25 |
with: |
| 26 |
go-version: ${{ env.GO_VERSION }} |
| 27 |
|
| 28 |
- name: Run GoReleaser |
| 29 |
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 |
| 30 |
with: |
| 31 |
version: latest |
| 32 |
args: release --clean |
| 33 |
env: |
| 34 |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} |