on main help sign in
ci: fix build workflow (#94)
703eb3dCarlos Alexandro Becker
.github/workflows/build.yml+6−34
@@ -1,37 +1,9 @@
1name: build
1name: build
2−
2+on: [push, pull_request]
3−on:
4− workflow_dispatch:
5− push:
6− branches:
7− - main
8−
9−concurrency: ${{ github.workflow }}-${{ github.ref }}
10−
11−permissions:
12− contents: write
13− packages: write
14
3
15jobs:
4jobs:
16− build:
5+ build-go:
17− runs-on: ubuntu-latest
6+ uses: charmbracelet/meta/.github/workflows/build.yml@main
18− steps:
19− - uses: actions/checkout@v3
20− with:
7+ with:
21− fetch-depth: 0
22−
23− - run: git fetch --force --tags
24−
25− - uses: actions/setup-go@v5
26− with:
27− go-version: ">=1.23.2"
8+ go-version: ""
28− cache: true
9+ go-version-file: ./go.mod
29− cache-dependency-path: go.sum
30−
31− - run: go mod download
32−
33− - uses: goreleaser/goreleaser-action@v6
34− with:
35− distribution: goreleaser
36− version: latest
37− args: build --snapshot --clean