-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 972 Bytes
/
Copy pathdeploy-github-pages.yml
File metadata and controls
44 lines (35 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Running deployment of documentation to gh-pages
on:
push:
branches:
- main
permissions:
contents: read
jobs:
run-documentation:
name: Run documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 11.2.2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run documentation create
run: pnpm run docusaurus:generate
- name: Run docusaurus build
run: pnpm run docusaurus:build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.