diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ae35c0614..2eed5ee56 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -103,6 +103,10 @@ jobs: touch dist/.nojekyll cp dist/index.html dist/404.html + - name: Delete gh-pages branch + run: | + git push origin --delete gh-pages + - name: Deploy uses: peaceiris/actions-gh-pages@v2.5.0 env: @@ -112,6 +116,5 @@ jobs: with: forceOrphan: true - - name: Delete gh-pages branch - run: | - git push origin --delete gh-pages + +