forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.19 KB
/
generate_documentation.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
35
36
37
38
39
40
41
42
name: Generate Documentation
permissions:
contents: read
on:
push:
branches:
- dev
workflow_dispatch: # allows this workflow to be manually triggered
env:
SPACEMAN_DMM_VERSION: suite-1.7.2
jobs:
generate_documentation:
permissions:
contents: write # required to push the doc commit
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
concurrency: gen-docs
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Setup Cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129
with:
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }}
- name: Install dmdoc
run: scripts/install-spaceman-dmm.sh dmdoc
- name: Generate documentation
run: |
~/dmdoc
touch dmdoc/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@e6d003d0839927f5a4b998bfd92ed8e448fde37a
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages-dmdoc
single-commit: true
folder: dmdoc
clean: true