diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0ce6c5..535dc26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,8 @@ jobs: # Step 4: Switch to gh-pages branch - name: Switch to gh-pages branch run: | - git fetch origin gh-pages - git checkout -B gh-pages origin/gh-pages || git checkout --orphan gh-pages + git fetch origin gh-pages || echo "gh-pages branch does not exist yet" + git checkout gh-pages || git checkout --orphan gh-pages git reset --hard # Step 5: Deploy to gh-pages branch