Skip to content

Commit d3509d5

Browse files
committed
Add Goreleaser workflow
1 parent 0f3f8a8 commit d3509d5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/goreleaser.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Push to Docker Hub
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
goreleaser:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Unshallow
14+
run: git fetch --prune --unshallow
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.14
20+
21+
- name: Run goreleaser
22+
uses: goreleaser/goreleaser-action@v2
23+
with:
24+
version: latest
25+
args: release --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)