-
-
Notifications
You must be signed in to change notification settings - Fork 13
30 lines (26 loc) · 686 Bytes
/
github_pages.yml
File metadata and controls
30 lines (26 loc) · 686 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
name: GitHub pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build JSDoc + Readme
uses: andstor/jsdoc-action@v1
with:
source_dir: ./lib
output_dir: ./doc/jsdoc
config_file: ./config/jsdoc.json
template: minami
recurse: true
front_page: README.md
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/jsdoc