Skip to content

Commit

Permalink
Re-use documentation testing for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
psomhorst committed Nov 8, 2024
1 parent 58c976f commit a235caf
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test_build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,24 @@ on:
- develop

jobs:
test-build-docs:
build-docs:
if: github.event.pull_request.draft == false
name: Test documentation build
runs-on: ${{ matrix.os }}
name: Build documentation
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.10
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install .[docs]
run: python3 -m pip install .[docs]
- name: Build documentation
run: mkdocs build
- name: Deploy documentatioon
if: ${{ github.event.action == 'push' && github.action_ref == 'main' }}
run: mkdocs gh-deploy

0 comments on commit a235caf

Please sign in to comment.