Skip to content

Reduce redundancy in shape factory by adding names (#242) #77

Reduce redundancy in shape factory by adding names (#242)

Reduce redundancy in shape factory by adding names (#242) #77

Workflow file for this run

# This workflow builds the Data Morph documentation and publishes it using GitHub pages.
#
# Based on https://olgarithms.github.io/sphinx-tutorial/docs/8-automating-documentation-updates.html
#
# Author: Stefanie Molin
name: Deploy Docs
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
- 'src/**'
- '!src/data_morph/__main__.py'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
docs:
name: Build and deploy docs.
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install '.[docs]'
- name: Sphinx build
run: |
git worktree add docs/_build/html gh-pages
cd docs
make html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html