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/* ../