Skip to content

Commit

Permalink
update doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Dec 22, 2023
1 parent 86f465f commit 1c2846d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ jobs:
cd gh-pages
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
# Delete everything except the book
mv dev/bench ..
rm -rf *
# There are benchmarks stored in dev/bench/ that we would like to
# keep around. Otherwise, this just adds the book as a separate
# directory.
mv ../dev/bench .
mv ../book/ .
git add book
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages

0 comments on commit 1c2846d

Please sign in to comment.