Skip to content

Commit

Permalink
Dynamically build branch subdirectory.
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz00 committed Jan 12, 2025
1 parent 59a50f4 commit dc7b25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- name: Build Sphinx Docs
env:
PYTHONPATH: ${{ github.workspace }}
GITHUB_REF_NAME: ${{ github.ref_name }}
run: make docs

- name: Upload Artifact
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ build:
python3 -m build --sdist --wheel

docs:
sphinx-build -b html docs/ docs/_build/html
@BRANCH=$(shell echo $(GITHUB_REF_NAME)) && \
mkdir -p docs/_build/$$BRANCH && \
sphinx-build -b html docs/ docs/_build/$$BRANCH

0 comments on commit dc7b25b

Please sign in to comment.