-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.02 KB
/
Copy pathdocs.yml
File metadata and controls
47 lines (39 loc) · 1.02 KB
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
name: Deploy Documentation
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docs/**'
- 'docs-site/**'
- '.github/workflows/docs.yml'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Sync Design Tokens
run: node scripts/sync-design-tokens.cjs
- name: Build static site
run: npm run docs:build
- name: Deploy to lekha.github.io
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs-site-dist
repository-name: WGLabz/thenotelyapp.github.io
branch: main
token: ${{ secrets.DEPLOY_DOCS_TOKEN || secrets.GITHUB_TOKEN }}
clean: true