Skip to content

Commit

Permalink
update docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Mar 19, 2024
1 parent 1eefe83 commit 7b501a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
git fetch origin gh-pages:gh-pages
tag="${{ github.ref_name }}"
DOC_VERSION=${tag%.*}
nox -s build_and_deply_docs -- --no-redirect --update-aliases "$DOC_VERSION" latest
nox -s deploy_docs -- --alias-type=copy --update-aliases "$DOC_VERSION" latest
git push origin gh-pages
- name: Publish package distributions to PyPI
run: pdm publish --no-build
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def bump(session: nox.Session) -> None:


@nox.session
def build_and_deploy_docs(session: nox.Session) -> None:
"""Builds the code documentation."""
def deploy_docs(session: nox.Session) -> None:
"""Builds and deploys the code documentation."""
args = session.posargs or []
session.run_always("pdm", "install", "--group", "docs", external=True)
session.run("pdm", "run", "mike", "deploy", *args)
Expand Down

0 comments on commit 7b501a8

Please sign in to comment.