Files
Bubberstation/.github/workflows/generate_documentation.yml
Mothblocks 4405feb27f Lowers frequency of Docker Publish and Generate Documentation changes to lower throughput (#71294)
Docker Publish is now a nightly.

Generate Documentation now runs every 6 hours.

Both used to run every commit, and our CI is getting heavily
bottlenecked. Need to ease some stress.
2022-11-15 23:17:36 -08:00

37 lines
1.1 KiB
YAML

name: Generate documentation
on:
schedule:
- cron: "44 */6 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
generate_documentation:
permissions:
contents: write # for JamesIves/github-pages-deploy-action to push changes in repo
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-20.04
concurrency: gen-docs
steps:
- uses: actions/checkout@v3
- name: Setup cache
uses: actions/cache@v3
with:
path: ~/SpacemanDMM
key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }}
- name: Install SpacemanDMM
run: bash tools/ci/install_spaceman_dmm.sh dmdoc
- name: Generate documentation
run: |
~/dmdoc
touch dmdoc/.nojekyll
echo codedocs.tgstation13.org > dmdoc/CNAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
BRANCH: gh-pages
CLEAN: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SINGLE_COMMIT: true
FOLDER: dmdoc