-
Notifications
You must be signed in to change notification settings - Fork 211
42 lines (36 loc) · 993 Bytes
/
release.yml
File metadata and controls
42 lines (36 loc) · 993 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-go-bin-on-tag
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: write
jobs:
build-go-bin:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.1"
cache: true
- name: Set up Bun
# GoReleaser invokes `go build` directly (bypassing the Makefile),
# so the //go:embed all:webui/dist directive needs `make ui` to
# run explicitly first — handled via .goreleaser.yml's before
# hooks but bun must be on PATH.
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.21"
- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v1"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}