forked from SierraBay/SierraBay12
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.7 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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.3
jobs:
PreFlight:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: paths-filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: filter
with:
filters: .github/workflow-config/preflight-filters.yml
outputs:
dm: ${{ steps.filter.outputs.dm }}
generate_documentation:
permissions:
contents: write # required to push the doc commit
runs-on: ubuntu-latest
needs: PreFlight
if: |
(needs.PreFlight.outputs.dm == 'true') &&
!contains(github.event.head_commit.message, '[ci skip]')
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/spaceman_dmm/${{ env.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
- name: Deploy
uses: JamesIves/github-pages-deploy-action@15de0f09300eea763baee31dff6c6184995c5f6a
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dmdoc
target-folder: docs
clean: true