forked from cue-lang/cue
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 986 Bytes
/
snapshot.yaml
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
43
44
45
46
47
48
49
50
name: Snapshot
on:
push:
tags:
- v*
permissions:
contents: write
concurrency: snapshot
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v5
with:
cache: false
go-version: 1.23.2
- name: Set common go env vars
run: |-
go env -w GOTOOLCHAIN=local
# Dump env for good measure
go env
- name: Install CUE
run: go install ./cmd/cue
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
version: v2.3.2
- name: Run GoReleaser with CUE
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export CUE_CONFIG_DIR=$(mktemp -d)
cue cmd release
working-directory: ./internal/ci/goreleaser