Skip to content

Commit

Permalink
Fix checkout path
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Nov 19, 2024
1 parent dad1fa7 commit cd27f7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/* ../
Expand Down

0 comments on commit cd27f7d

Please sign in to comment.