Skip to content

Commit 7fecf39

Browse files
committed
Update GitHub Pages workflow to use project's Hugo installation method
1 parent 18c52e5 commit 7fecf39

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,31 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
with:
31+
submodules: recursive # Fetch Hugo themes
32+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
33+
34+
- name: Setup Go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version: '1.23'
38+
39+
- name: Install Hugo
40+
run: |
41+
cd hack/internal/tools && GOBIN=$GITHUB_WORKSPACE/bin CGO_ENABLED=1 go install -tags extended github.com/gohugoio/[email protected]
42+
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
43+
44+
- name: Build Hugo site
45+
working-directory: ./site
46+
run: $GITHUB_WORKSPACE/bin/hugo --minify --baseURL https://docs.sglang.ai/ome/
3047

3148
- name: Setup Pages
3249
uses: actions/configure-pages@v4
3350

3451
- name: Upload artifact
3552
uses: actions/upload-pages-artifact@v3
3653
with:
54+
# Upload the built public directory
3755
path: './site/public'
3856

3957
# Deployment job

0 commit comments

Comments
 (0)