-
-
Notifications
You must be signed in to change notification settings - Fork 53
56 lines (46 loc) · 1.08 KB
/
gh-pages.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
name: Github Pages
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: 'pnpm'
- name: Install Dependencies
run: |
pnpm install
- name: Check Dependencies
run: |
pnpm list --recursive
pnpm outdated --recursive || true
pnpm audit
- name: Check pnpm
run: |
pnpm doctor
- name: Build Docs
run: |
pnpm run build
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: docs/.vitepress/dist
cname: docs.sublimetext.io