-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1 KB
/
release.yml
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
name: Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v2.1.3
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: Installer linter (golangci)
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v${GOLANGCI_LINT_VERSION}
env:
GOLANGCI_LINT_VERSION: '1.46.2'
- name: Get dependencies
run: go mod vendor
env:
GO111MODULE: 'on'
- name: Test
run: make test
- name: Lint
run: make lint
- name: Build
run: |
curl -sL https://git.io/goreleaser | head -n -2 | bash
tar -xf /tmp/goreleaser.tar.gz -C $(go env GOPATH)/bin
goreleaser --skip-sign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}