-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 929 Bytes
/
release.yaml
File metadata and controls
41 lines (38 loc) · 929 Bytes
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
38
39
40
41
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Run unit tests
run: go test -cover ./...
- name: Run linting
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=10m
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: v1.11.2
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}