Skip to content

Commit 359c04f

Browse files
committed
ci: Use devbox script to build docs site
1 parent 0fa0e63 commit 359c04f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/github-pages.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ jobs:
7272
# For maximum backward compatibility with Hugo modules
7373
HUGO_ENVIRONMENT: production
7474
HUGO_ENV: production
75-
run: |
76-
cd docs
77-
devbox run -- hugo \
78-
--minify \
79-
--baseURL "${{ steps.pages.outputs.base_url }}/"
75+
BASE_URL: "${{ steps.pages.outputs.base_url }}/"
76+
run: devbox run -- build-docs
8077

8178
- name: Upload artifact
8279
if: github.ref == 'refs/heads/main'

devbox.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"shell": {
3939
"scripts": {
4040
"preview-docs": [
41-
"cd docs && hugo server -F -D"
41+
"cd docs && hugo server --buildFuture --buildDrafts"
42+
],
43+
"build-docs": [
44+
"cd docs && hugo --minify --baseURL \"${BASE_URL}\""
4245
]
4346
}
4447
}

0 commit comments

Comments
 (0)