Skip to content

Publish documentation #5

Publish documentation

Publish documentation #5

Workflow file for this run

name: Publish documentation
on:
workflow_call:
workflow_dispatch:
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
submodules: "true"
- name: Set up Python 3.9
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: "3.9"
- name: Install prerequisites
run: |
python -m pip install --upgrade pip wheel
python -m pip install -r ./piped/python/base-requirements/nox.txt
- name: Build docs
id: doc_info
run: |
mkdir site
python -m nox -s generate-docs -- -o ./site -j
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_STATE
- name: Push
uses: JamesIves/github-pages-deploy-action@881db5376404c5c8d621010bcbec0310b58d5e29
with:
branch: docs
commit-message: "${{ steps.doc_info.outputs.GIT_HASH }} docs (${{ github.event.release.tag_name || github.event.ref }})"
clean-exclude: pr-preview
folder: ./site
git-config-email: "120557446+always-on-duty[bot]@users.noreply.github.com"
git-config-name: "always-on-duty[bot]"