feat: add codespace button #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build documentation | |
on: | |
push: | |
branches: [main] | |
# Environment | |
env: | |
PYTHON_VERSION: 3.10.13 | |
POETRY_VERSION: 1.6.1 | |
jobs: | |
# Build and deploy documentation site | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source form GitHub | |
uses: actions/checkout@v2 | |
- name: Install Python runtime and dependencies | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Run image | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Deploy | |
run: | | |
poetry run mkdocs gh-deploy --force |