From 7b501a8624d29d22e8cbd5757238b3277ec8ffcd Mon Sep 17 00:00:00 2001 From: ioangatop Date: Tue, 19 Mar 2024 14:53:20 +0100 Subject: [PATCH] update docs deploy --- .github/workflows/release.yaml | 2 +- noxfile.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 95e2a545..2d16d02d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/noxfile.py b/noxfile.py index f6964c03..e4ee437d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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)