Skip to content

Commit db4c77c

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

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 10 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 the master branch
4+
# trigger deployment on every push to main branch
55
push:
66
branches: [master]
77
# trigger deployment manually
@@ -33,22 +33,17 @@ 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
3836
run: pnpm docs:build
3937

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
4540
- name: Deploy to GitHub Pages
4641
uses: crazy-max/ghaction-github-pages@v4
4742
with:
4843
# deploy to gh-pages branch
49-
target_branch: gh-pages
44+
target_branch: gh-pages-new
5045
# deploy the default output dir of VuePress
5146
build_dir: docs/.vuepress/dist
5247
env:
5348
# @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 }}

0 commit comments

Comments
 (0)