Skip to content

Commit cc5788b

Browse files
committed
Adding deploy build for tags
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@critical.today>
1 parent 9b4002e commit cc5788b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/tag.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: "Release a tag"
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Go
15+
uses: actions/setup-go@v1
16+
with:
17+
go-version: 1.14
18+
- name: Unshallow
19+
run: git fetch --prune --unshallow
20+
- name: Login do docker.io
21+
run: docker login -u iwankgb -p ${{ secrets.GOLANGCI_LINT_DOCKER_TOKEN }}
22+
- name: Create release
23+
uses: goreleaser/goreleaser-action@v1
24+
with:
25+
args: release --rm-dist
26+

0 commit comments

Comments
 (0)