Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
uses: actions/checkout@v4
Comment thread
amc-corey-cox marked this conversation as resolved.
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
fetch-depth: 0

- name: Set up Python 3.
uses: actions/setup-python@v3
with:
python-version: 3.13
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install Poetry.
uses: snok/install-poetry@v1.3.1
- name: Install Python
run: uv python install 3.13

- name: Install dependencies.
run: |
poetry install --with docs
- name: Install dependencies
run: uv sync --group docs

- name: Build documentation.
- name: Build documentation
run: |
echo ${{ secrets.GITHUB_TOKEN }} >> src/dm_bip/token.txt
mkdir gh-pages
touch gh-pages/.nojekyll
cd docs/
poetry run sphinx-apidoc -o . ../src/dm_bip/ --ext-autodoc -f
poetry run sphinx-build -b html . _build
uv run sphinx-apidoc -o . ../src/dm_bip/ --ext-autodoc -f
uv run sphinx-build -b html . _build
cp -r _build/* ../gh-pages/

- name: Deploy documentation.
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
force: true
Expand Down
Loading