Skip to content

Commit 43ba084

Browse files
authored
Update docs-ci.yaml
1 parent 35c318e commit 43ba084

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/docs-ci.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: ci
22
on:
3-
push:
4-
branches:
5-
- master
6-
- main
3+
push:
4+
branches:
5+
- master
6+
- main
77
permissions:
8-
contents: write
8+
contents: write
99
jobs:
10-
deploy:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 20
17-
cach: yarn
18-
- name: Install dependencies
19-
run: yarn install --frozen-lockfile --non-interactive
20-
- name: Build
21-
run: |
22-
cd docusaurus
23-
yarn install
24-
yarn build
25-
- uses: peaceiris/actions-gh-pages@v3
26-
with:
27-
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: ./docusaurus/build
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: npm
18+
cache-dependency-path: docusaurus/package-lock.json
19+
- name: Install dependencies
20+
run: npm ci
21+
working-directory: docusaurus
22+
- name: Build
23+
run: npm run build
24+
working-directory: docusaurus
25+
- uses: peaceiris/actions-gh-pages@v4
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./docusaurus/build

0 commit comments

Comments
 (0)