Skip to content

Commit ae3a167

Browse files
authored
Updating deploy.yml
1 parent 082466f commit ae3a167

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ jobs:
2727
2828
- name: Deploy to GitHub Pages
2929
run: |
30-
git fetch origin gh-pages || true
31-
git checkout gh-pages 2>/dev/null || git checkout --orphan gh-pages
30+
mkdir -p deploy
31+
cp -r * deploy
32+
git checkout gh-pages || git checkout --orphan gh-pages
3233
git rm -rf . > /dev/null 2>&1 || true
3334
git clean -fxd
34-
cp -r ../$(basename $GITHUB_WORKSPACE)/* .
35+
cp -r deploy/* .
3536
git add .
3637
git commit -m "Deploy updates from $(date)" || echo "No changes to commit"
3738
git push origin gh-pages

0 commit comments

Comments
 (0)