Skip to content

Commit

Permalink
handling of gh-pages branch not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Votre Nom authored and Votre Nom committed Sep 18, 2024
1 parent c751292 commit 46df894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Create or checkout the 'gh-pages' branch
git fetch origin gh-pages
git fetch origin gh-pages || echo "gh-pages branch does not exist"
git checkout gh-pages || git checkout --orphan gh-pages
# Remove all existing files from the branch
Expand Down

0 comments on commit 46df894

Please sign in to comment.