Skip to content

Documentation

Documentation #11138

Workflow file for this run

name: Documentation
on:
workflow_dispatch:
schedule:
- cron: 0 0,12 * * * # twice a day, at 12:00 and 00:00
push:
branches:
- master
permissions:
contents: read
pull-requests: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Fetch documentation
run: poetry run python wiki.py
env:
GITHUB_PAT: ${{ secrets.WIKI_PAT }}
- name: Create static build
run: poetry run mkdocs build
- name: Complete static build
run: |
touch site/.nojekyll
echo "wiki.eagletrt.it" > site/CNAME
- name: Push to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: site
token: ${{ secrets.WIKI_PAT }}
force: true
single-commit: true
git-config-name: eagletrtbot
git-config-email: fsae@eagletrt.it