Skip to content

Commit

Permalink
add fix for missing gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
srogawski-nvidia committed Oct 15, 2024
1 parent cc54346 commit 538f2b0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ jobs:
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git fetch --no-tags origin +refs/heads/gh-pages:refs/remotes/origin/gh-pages
git checkout gh-pages || git checkout --orphan gh-pages
if git ls-remote --exit-code origin gh-pages; then
git fetch origin gh-pages
git checkout gh-pages
else
git checkout --orphan gh-pages
fi
rm -rf *
cp -r public/* .
git add .
git commit -m "Deploy updated documentation to GitHub Pages from commit $GITHUB_SHA"
git push origin gh-pages --force

0 comments on commit 538f2b0

Please sign in to comment.