-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 975 Bytes
/
Copy pathjsdoc-deploy.yml
File metadata and controls
43 lines (34 loc) · 975 Bytes
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
name: Deploy JSDoc to StreamIt-docs
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deploy-doc:
runs-on: ubuntu-latest
steps:
- name: Check Personal Access Token
run: |
if [ -z "${{ secrets.PERSONAL_ACCESS_TOKEN }}" ]; then
echo "Error: PERSONAL_ACCESS_TOKEN is not set."
exit 1
fi
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install JSDoc
run: npm install -g jsdoc
- name: Generate JSDoc
run: jsdoc -c jsdoc.json
- name: Deploy to StreamIt-docs
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: ./docs
external_repository: KucoDEV/StreamIt-docs
publish_branch: main
force_orphan: true