We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3639d3a commit 082466fCopy full SHA for 082466f
.github/workflows/deploy.yml
@@ -27,7 +27,11 @@ jobs:
27
28
- name: Deploy to GitHub Pages
29
run: |
30
- git checkout gh-pages || git checkout --orphan gh-pages
+ git fetch origin gh-pages || true
31
+ git checkout gh-pages 2>/dev/null || git checkout --orphan gh-pages
32
+ git rm -rf . > /dev/null 2>&1 || true
33
+ git clean -fxd
34
+ cp -r ../$(basename $GITHUB_WORKSPACE)/* .
35
git add .
- git commit -m "Deploy updates" || echo "No changes to commit"
- git push origin gh-pages
36
+ git commit -m "Deploy updates from $(date)" || echo "No changes to commit"
37
+ git push origin gh-pages
0 commit comments