Skip to content

Commit 32b6ba0

Browse files
committed
fix: ensure embedded ui fs is populated before ci builds
Tell goreleaser to build the UI before it builds the `gptscript` binaries. This ensures that the go:embed FS used by `gptscript --serve` gets populated. Signed-off-by: Nick Hale <[email protected]>
1 parent bb81288 commit 32b6ba0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
distribution: goreleaser
2828
version: v1.23.0
29-
args: release --rm-dist
29+
args: release --clean
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
GH_PROJECT_TOKEN: ${{ secrets.GH_PROJECT_TOKEN }}

.github/workflows/test.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
with:
1919
cache: false
2020
go-version: "1.21"
21+
- name: Build UI
22+
run: make build-ui
2123
- name: Validate
2224
run: make validate
2325
- name: Build

.goreleaser.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ dist: releases
22
snapshot:
33
name_template: '{{ trimprefix .Summary "v" }}'
44

5+
before:
6+
hooks:
7+
# Generate UI assets to embedded in binaries
8+
- make build-ui
9+
510
builds:
611
- id: default
712
binary: gptscript

0 commit comments

Comments
 (0)