Skip to content

Commit e3cfca8

Browse files
committed
ci(release): publish frontend binary alongside server and worker
The SSR frontend is a third deployable and should ship in the same release archives so operators don't have to build it separately. Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
1 parent f410530 commit e3cfca8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,25 @@ jobs:
6868
-ldflags "-s -w -X main.Version=${VERSION}" \
6969
./cmd/worker
7070
71+
# Build frontend
72+
go build -o dist/frontend-${GOOS}-${GOARCH}${{ matrix.goos == 'windows' && '.exe' || '' }} \
73+
-ldflags "-s -w -X main.Version=${VERSION}" \
74+
./cmd/frontend
75+
7176
# Create archives
7277
if [ "${{ matrix.goos }}" = "windows" ]; then
7378
cd dist
7479
zip ../systemofadownload-${VERSION}-${GOOS}-${GOARCH}.zip \
7580
server-${GOOS}-${GOARCH}.exe \
76-
worker-${GOOS}-${GOARCH}.exe
81+
worker-${GOOS}-${GOARCH}.exe \
82+
frontend-${GOOS}-${GOARCH}.exe
7783
cd ..
7884
else
7985
tar -czf systemofadownload-${VERSION}-${GOOS}-${GOARCH}.tar.gz \
8086
-C dist \
8187
server-${GOOS}-${GOARCH} \
82-
worker-${GOOS}-${GOARCH}
88+
worker-${GOOS}-${GOARCH} \
89+
frontend-${GOOS}-${GOARCH}
8390
fi
8491
8592
- name: Upload release artifacts

0 commit comments

Comments
 (0)