From 3cbdb884dc176b6faf0cad0e980a50d715ab231a Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 16 Jul 2024 12:57:59 -0400 Subject: [PATCH] Change docs to publish at site (#5112) ## Summary Since it's no longer publishing with GitHub Pages, we can use `site` instead of `docs` (which matches the name we build under in `uv`). --- .github/workflows/publish-docs.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 13558f3fc..cf0f3c94c 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -33,11 +33,11 @@ jobs: - name: "Set docs version" run: | - version="${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || inputs.ref }}" - # if version is missing, exit with error - if [[ -z "$version" ]]; then - echo "Can't build docs without a version." - exit 1 + version="${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || inputs.ref }" + # if version is missing, use 'latest' + if [ -z "$version" ]; then + echo "Using 'latest' as version" + version="latest" fi # Use version as display name for now @@ -87,7 +87,7 @@ jobs: git clone https://${{ secrets.ASTRAL_DOCS_PAT }}@github.com/astral-sh/docs.git astral-docs - name: "Copy docs" - run: rm -rf astral-docs/docs/uv && mkdir -p astral-docs/docs && cp -r docs/uv astral-docs/docs/ + run: rm -rf astral-docs/site/uv && mkdir -p astral-docs/site && cp -r site/uv astral-docs/site/ - name: "Commit docs" working-directory: astral-docs