-
-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (47 loc) · 1.33 KB
/
docs-deploy.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Deploy (Docs)
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: Documentation
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install canvas dependencies
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: Set up NodeJS
uses: actions/setup-node@v4
with:
node-version: 22.5.1
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.6.0
- name: Install dependencies
run: pnpm install
- name: Run build
run: pnpm docs:build
- name: Configure pages
uses: actions/configure-pages@v4
- name: Upload build
uses: actions/upload-pages-artifact@v2
with:
path: apps/docs/docs/.vitepress/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v3