Skip to content

Commit 33246bd

Browse files
Create deployment.yaml
1 parent 1705a71 commit 33246bd

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deployment.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Go releaser
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
-
10+
name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
-
15+
name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.15
19+
-
20+
name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v2
22+
with:
23+
version: latest
24+
args: release --rm-dist
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.RELEASEGHTOKEN }}
27+
-
28+
name: Run GoReleaser
29+
uses: goreleaser/goreleaser-action@v2
30+
with:
31+
version: latest
32+
args: release --rm-dist
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.RELEASEGHTOKEN }}
35+
-
36+
name: Upload assets
37+
uses: actions/upload-artifact@v2
38+
with:
39+
name: yamllint-checkstyle
40+
path: dist/*

0 commit comments

Comments
 (0)