-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 932 Bytes
/
release.yml
File metadata and controls
42 lines (35 loc) · 932 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
42
name: release
on:
push:
tags:
- 'v*'
env:
GO_VERSION: 1.25.9
LINTER_VERSION: v2.6
GOLINT_ARGS: -v --allow-parallel-runners --timeout=10m --disable errcheck
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout ⤵️
uses: actions/checkout@v6
- name: Setup Go 🛠️
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Test 🧪
run: |
go test -race -mod=readonly ./...
- name: Lint 🪥
uses: golangci/golangci-lint-action@v8
with:
version: ${{ env.LINTER_VERSION }}
working-directory: ./
args: ${{ env.GOLINT_ARGS }}
- name: Create release 🌟
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
generate_release_notes: true
make_latest: true