Skip to content

Commit bf4059f

Browse files
authored
Update deploy.yml
1 parent bf5bd78 commit bf4059f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: actions/checkout@v2
1919
with:
2020
token: ${{ secrets.GH_TOKEN }}
21+
fetch-depth: 0
2122

2223
- name: Set up Git
2324
run: |
@@ -27,7 +28,7 @@ jobs:
2728
2829
- name: Deploy to GitHub Pages
2930
run: |
30-
git checkout gh-pages
31+
git checkout gh-pages || git checkout --orphan gh-pages
3132
# Make changes to gh-pages branch if necessary
3233
git add .
3334
git commit -m "Deploy updates"

0 commit comments

Comments
 (0)