From 74a9bd081d84ea20c70c5f14abf77a3bc2746185 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Thu, 27 Jun 2024 10:38:09 -0400 Subject: [PATCH] chore: Forced re-creation of API docs on gh-pages --- bin/publish-docs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/publish-docs.sh b/bin/publish-docs.sh index b6b2ad2314..3b56bf5740 100755 --- a/bin/publish-docs.sh +++ b/bin/publish-docs.sh @@ -8,13 +8,13 @@ PACKAGE_VERSION=$(node -e 'console.log(require("./package").version)') git fetch origin gh-pages git checkout gh-pages -git merge - +git checkout main +git branch -fd gh-pages +git checkout -b gh-pages npm run public-docs sleep 1 -git rm -r docs -sleep 1 mv out docs sleep 1 git add docs git commit -m "docs: update for ${PACKAGE_VERSION}" -git push origin gh-pages +git push --force origin gh-pages