-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.02 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: release
on:
push:
tags:
- "v*.*.*"
env:
CGO_ENABLED: 0
jobs:
release-binary:
runs-on: ubuntu-latest
steps:
# This fails for invalid semver strings
- name: Parse semver string
id: semver_parser
uses: booxmedialtd/ws-action-parse-semver@966a26512c94239a00aa10b1b0c196906f7e1909
with:
input_string: ${{github.ref_name}}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
- name: Run GoReleaser Dry-Run
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist --skip-validate --skip-publish --skip-sign
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist --skip-sign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}