Skip to content

Commit d370e6d

Browse files
committed
prepare build in ci
1 parent ff6381f commit d370e6d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set shell := ["/usr/bin/env", "bash", "-c"]
2+
13
spoilers-font := "https://github.com/istudyatuni/spoilers-ahead-font/raw/refs/heads/master/SpoilersAhead.otf"
24
spoilers-font-file := "frontend/public/SpoilersAhead.otf"
35

@@ -8,8 +10,11 @@ spoilers-font-file := "frontend/public/SpoilersAhead.otf"
810
# run frontend dev server
911
dev: download-spoilers-font (yarn "dev --host --port 8080")
1012

13+
[private]
14+
build-prepare: download-spoilers-font minify-json
15+
1116
# build frontend
12-
build: download-spoilers-font minify-json (yarn-prod "build")
17+
build: build-prepare (yarn-prod "build")
1318

1419
# run frontend in prod mode
1520
preview: download-spoilers-font (yarn-prod "preview")

0 commit comments

Comments
 (0)