File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
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 the master branch
4
+ # trigger deployment on every push to main branch
5
5
push :
6
6
branches : [master]
7
7
# trigger deployment manually
@@ -33,22 +33,17 @@ 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
38
36
run : pnpm docs:build
39
37
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
38
+ # please check out the docs of the workflow for more details
39
+ # @see https://github.com/crazy-max/ghaction-github-pages
45
40
- name : Deploy to GitHub Pages
46
41
uses : crazy-max/ghaction-github-pages@v4
47
42
with :
48
43
# deploy to gh-pages branch
49
- target_branch : gh-pages
44
+ target_branch : gh-pages-new
50
45
# deploy the default output dir of VuePress
51
46
build_dir : docs/.vuepress/dist
52
47
env :
53
48
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
54
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments