Skip to content

rearrange

rearrange #26

name: Build and Publish Docs
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install Materials Compendium
run: |
python -m pip install .
- name: Install dependencies
run: |
pip install sphinx \
cloud_sptheme \
nbsphinx \
myst-nb \
sphinx_design \
sphinx_autodoc_typehints
- name: Build Sphinx documentation
run: |
cd docs
make html
- name: Set commit message
id: set_commit_message
run: |
echo "::set-output name=message::Publish docs at $(date -u +'%Y-%m-%d %H:%M:%S') (Workflow Run: ${{ github.run_id }})"
- name: Publish documentation to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/build/html
commit-message: ${{ steps.set_commit_message.outputs.message }}
clean: true