mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 01:21:30 +00:00
* Update ci_suite.yml * Update autowiki.yml * Update ci_suite.yml * codeowner_reviews didn't exist * Update docker_publish.yml * Update gbp.yml * Update gbp_collect.yml * Update generate_documentation.yml * Update update_tgs_dmapi.yml * resets the folder * token update * label readd * Update .github/workflows/stale.yml Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Generate documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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
|