Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
push:
branches:
- main
- docs/mkdocs-web-reference
- "ellphi-*"
pull_request:
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,10 +29,9 @@ jobs:
- name: Install dependencies
run: poetry install --with docs

- name: Build and deploy
if: github.event_name == 'push'
run: poetry run mkdocs gh-deploy --force

- name: Build only (PR)
if: github.event_name == 'pull_request'
- name: Build docs
run: poetry run mkdocs build

- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: poetry run mkdocs gh-deploy --force
8 changes: 2 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
cd test_run
pytest ../tests

build-docs:
demo-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -178,8 +178,4 @@ jobs:
key: ${{ runner.os }}-poetry-${{ hashFiles('pyproject.toml') }}-v2

- name: Install project (demo extras)
run: poetry install --with demo # Install core and demo dependencies

# Add steps for building documentation here, e.g., mkdocs build or sphinx build
# - name: Build documentation
# run: poetry run mkdocs build
run: poetry install --with demo # Ensure the demo dependency set resolves
Loading