Skip to content

Merge pull request #74 from mitodl/renovate/actions-checkout-4.x #18

Merge pull request #74 from mitodl/renovate/actions-checkout-4.x

Merge pull request #74 from mitodl/renovate/actions-checkout-4.x #18

Workflow file for this run

name: Publish Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
name: Publish Documentation
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install ghp-import
run: pip install ghp-import
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache0-py${{ matrix.python_version }}
named-caches-hash: ${{ hashFiles('dist/sphinx/*') }}
- name: Build documentation
run: |
pants docs ::
- name: Publish Documentation
run: ghp-import --push --force --no-history --no-jekyll dist/sphinx/