-
Notifications
You must be signed in to change notification settings - Fork 23
45 lines (37 loc) · 973 Bytes
/
deploy-docs.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
name: Deploy CH-UI Docs to GitHub Pages
on:
push:
branches:
- main
paths:
- "docs/**"
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: |
cd docs
npm ci
- name: Build website
run: |
cd docs
npm run build
- name: Add .nojekyll file
run: touch docs/out/.nojekyll
- name: Create CNAME file
run: echo "ch-ui.caioricciuti.com" > docs/out/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/out
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"