Merge pull request #34589 from MuckerMayhem/fix-soda-cans #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- 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@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Cache | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
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@ec9c88baef04b842ca6f0a132fd61c762aa6c1b0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: dmdoc | |
target-folder: docs | |
clean: true |