-
-
Notifications
You must be signed in to change notification settings - Fork 63
33 lines (30 loc) · 940 Bytes
/
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
name: Deploy to GitHub Pages
on:
push:
branches:
- main
env:
FORCE_COLOR: 2
NODE: 16
permissions:
contents: read
jobs:
pages:
permissions:
contents: write # for peaceiris/actions-gh-pages to push pages branch
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-node@d86ebcd40b3cb50b156bfa44dd277faf38282d12
with:
node-version: "${{ env.NODE }}"
cache: "npm"
- run: npm ci
- name: Build docs
run: npm run build:docs
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs