File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : docs
2
2
3
3
on :
4
- # trigger deployment on every push to main branch
4
+ # trigger deployment on every push to the master branch
5
5
push :
6
6
branches : [master]
7
7
# trigger deployment manually
@@ -33,10 +33,15 @@ jobs:
33
33
34
34
# run build script
35
35
- name : Build VuePress site
36
+ env :
37
+ NODE_OPTIONS : --max_old_space_size=4096 # Add memory allocation if build fails on large sites
36
38
run : pnpm docs:build
37
39
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
40
45
- name : Deploy to GitHub Pages
41
46
uses : crazy-max/ghaction-github-pages@v4
42
47
with :
46
51
build_dir : docs/.vuepress/dist
47
52
env :
48
53
# @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 }}
You can’t perform that action at this time.
0 commit comments