From cd27f7dc1e23622c41a26d6709fcd698e189edff Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Tue, 19 Nov 2024 17:24:39 +0000 Subject: [PATCH] Fix checkout path --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc917d0a9..862b8deba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -112,16 +112,16 @@ jobs: uses: actions/checkout@v4 with: ref: gh-pages - path: ../gh-pages + path: gh-pages - name: Update gh-pages branch run: | # Copy to versions/ subdirectory - mkdir -p ../gh-pages/versions/${{ env.version }} - cp -r _site/* ../gh-pages/versions/${{ env.version }} + mkdir -p gh-pages/versions/${{ env.version }} + cp -r _site/* gh-pages/versions/${{ env.version }} # Find the latest version of the docs and copy that to the root - cd ../gh-pages/versions + cd gh-pages/versions LATEST_DOCS=$(ls -d * | sort -V | tail -n 1) cp -r $LATEST_DOCS/* ../