Skip to content

Schedule Deploy Documentation #180

Schedule Deploy Documentation

Schedule Deploy Documentation #180

Workflow file for this run

name: Schedule Deploy Documentation
on:
schedule:
- cron: '0 6 * * *'
push:
branches:
- main
- dev-mdbook
repository_dispatch:
types: [deploy-doc]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10.7'
cache: 'pip'
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Setup mdbook-admonish
uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: tommilligan/mdbook-admonish
tag: v1.15.0
cache: enable
- name: Setup mdbook-toc
uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: badboy/mdbook-toc
tag: 0.14.2
cache: enable
- name: Setup mdbook-external-links
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: mdbook-external-links
- name: Setup mdbook-emojicodes
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: mdbook-emojicodes
- name: Setup mdbook-tera
uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: avitex/mdbook-tera
tag: v0.5.1
cache: enable
- name: mdBook build
run: |
make build
env:
BALATRO_GLOBALS_LUA_BASE64: ${{ secrets.BALATRO_GLOBALS_LUA_BASE64 }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book