Skip to content

Commit cf6940e

Browse files
committed
Add CI
1 parent 42f4ce2 commit cf6940e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Go project
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
name: GoReleaser build
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
18+
19+
- name: Set up Go 1.17
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.17
23+
id: go
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@master
27+
with:
28+
version: latest
29+
args: release --rm-dist
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)