-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 968 Bytes
/
deploy.yaml
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
name: 'Deploy pages'
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: 20.x
DOCS_FOLDER: docs
DOCS_VERSION_PATH: /
GITHUB_TOKEN: ${{ github.token }}
jobs:
pages:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install and rebuild API docs
run: |
npm install &&
npm run docs:build
- name: Deploy API documentation 🚀
uses: JamesIves/[email protected]
with:
token: ${{ GITHUB_TOKEN }}
branch: github-pages
folder: ${{ env.DOCS_FOLDER }}/.vuepress/dist
target-folder: ${{ env.DOCS_VERSION_PATH }}
clean: true
clean-exclude: |
CNAME