forked from ss220club/Paradise-SS220
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 959 Bytes
/
generate_autodoc.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
name: Generate Documentation
on:
schedule:
- cron: "0 0 * * *" # Every day at the very start of the day. Except it happens an hour and a half later because actions backlog
workflow_dispatch:
jobs:
generate_docs:
name: 'Generate Documentation'
runs-on: ubuntu-20.04
steps:
- name: 'Update Branch'
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: master
- name: 'Install DMDOC'
run: bash tools/ci/install_dmdoc.sh
- name: 'Generate Documentation'
run: |
~/dmdoc
touch dmdoc/.nojekyll
# Nojekyll is important to disable jeykll syntax, which can mess with files that start with underscores
- name: 'Deploy Documentation'
uses: crazy-max/ghaction-github-pages@v4
with:
keep_history: false
build_dir: dmdoc
jekyll: false
fqdn: codedocs.paradisestation.org
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}