Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/DocCleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
keep="$(readlink stable)"
git config user.name "Documenter.jl"
git config user.email "documenter@juliadocs.github.io"
git rm -rf --ignore-unmatch v[0-9]*.[0-9]*
git rm -rf --ignore-unmatch "v[0-9]*.[0-9]*" "previews/*"
git checkout HEAD -- "$keep"
if git diff --cached --quiet; then
echo "No old docs to delete"
echo "No old docs or previews to delete"
else
git commit -m "Keep latest docs only"
git commit -m "Delete old docs and previews"
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
git push --force origin gh-pages-new:gh-pages
fi
24 changes: 0 additions & 24 deletions .github/workflows/DocPreviewCleanup.yml

This file was deleted.

Loading