Skip to content

Commit 9ed3a1c

Browse files
author
Lévai Norbert
committed
Update docs.yml
1 parent 7b19fcc commit 9ed3a1c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: docs
22

33
on:
4-
# trigger deployment on every push to main branch
4+
# trigger deployment on every push to the master branch
55
push:
66
branches: [master]
77
# trigger deployment manually
@@ -33,10 +33,15 @@ jobs:
3333

3434
# run build script
3535
- name: Build VuePress site
36+
env:
37+
NODE_OPTIONS: --max_old_space_size=4096 # Add memory allocation if build fails on large sites
3638
run: pnpm docs:build
3739

38-
# please check out the docs of the workflow for more details
39-
# @see https://github.com/crazy-max/ghaction-github-pages
40+
# ensure all files are generated, including index.map.js
41+
- name: Verify build output
42+
run: ls -R docs/.vuepress/dist
43+
44+
# deploy to GitHub Pages
4045
- name: Deploy to GitHub Pages
4146
uses: crazy-max/ghaction-github-pages@v4
4247
with:
@@ -46,4 +51,4 @@ jobs:
4651
build_dir: docs/.vuepress/dist
4752
env:
4853
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)