Skip to content

Commit 3cb4665

Browse files
committed
prepare build in ci
1 parent ff6381f commit 3cb4665

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/pages.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ jobs:
5050
run: cd frontend && yarn install --frozen-lockfile
5151

5252
- name: build
53-
run: cd frontend && yarn build
53+
run: |
54+
just build-prepare
55+
cd frontend && yarn build
5456
5557
- uses: actions/configure-pages@v5
5658

.justfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ spoilers-font-file := "frontend/public/SpoilersAhead.otf"
88
# run frontend dev server
99
dev: download-spoilers-font (yarn "dev --host --port 8080")
1010

11+
[private]
12+
build-prepare: download-spoilers-font minify-json
13+
1114
# build frontend
12-
build: download-spoilers-font minify-json (yarn-prod "build")
15+
build: build-prepare (yarn-prod "build")
1316

1417
# run frontend in prod mode
1518
preview: download-spoilers-font (yarn-prod "preview")
@@ -32,7 +35,7 @@ download-spoilers-font:
3235

3336
minify-json:
3437
#!/usr/bin/env bash
35-
if [[ "$CI" == "" ]]; then
38+
if [ "$CI" == "" ]; then
3639
echo ignoring minifying in non-ci
3740
exit
3841
fi

0 commit comments

Comments
 (0)