Skip to content

Commit e1fecd1

Browse files
author
Lévai Norbert
committed
Update Github Workflow
1 parent 8724f0d commit e1fecd1

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed
Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,30 @@
1-
2-
name: Deploy Docs
1+
name: Deploy VuePress
32

43
on:
54
push:
65
branches:
7-
# make sure this is the branch you are using
86
- master
97

10-
permissions:
11-
contents: write
12-
138
jobs:
14-
deploy-gh-pages:
9+
build-and-deploy:
1510
runs-on: ubuntu-latest
1611
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
# if your docs needs submodules, uncomment the following line
22-
# submodules: true
23-
24-
12+
- name: Checkout code
13+
uses: actions/checkout@v2
2514

26-
- name: Setup Node.js
15+
- name: Set up Node.js
2716
uses: actions/setup-node@v3
2817
with:
2918
node-version: 20
30-
cache: npm
3119

32-
- name: Install Deps
33-
run: npm ci
20+
- name: Install dependencies
21+
run: npm install
3422

35-
- name: Build Docs
36-
env:
37-
NODE_OPTIONS: --max_old_space_size=8192
38-
run: |-
39-
npm run docs:build
40-
> docs/.vuepress/dist/.nojekyll
23+
- name: Build VuePress
24+
run: npm run docs:build
4125

42-
- name: Deploy Docs
43-
uses: JamesIves/github-pages-deploy-action@v4
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
4428
with:
45-
# This is the branch where the docs are deployed to
46-
branch: gh-pages
47-
folder: docs/.vuepress/dist
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: docs/.vuepress/dist

0 commit comments

Comments
 (0)