-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 842 Bytes
/
Copy pathrelease.yml
File metadata and controls
36 lines (33 loc) · 842 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
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v7
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
- name: Install staticcheck
working-directory: cli
run: make tools
- name: Run tests and lint
working-directory: cli
run: make test && make lint
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v7
with:
version: v2.7.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}