Skip to content

Commit

Permalink
Updating deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
justin212407 authored Jan 23, 2025
1 parent 082466f commit ae3a167
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ jobs:
- name: Deploy to GitHub Pages
run: |
git fetch origin gh-pages || true
git checkout gh-pages 2>/dev/null || git checkout --orphan gh-pages
mkdir -p deploy
cp -r * deploy
git checkout gh-pages || git checkout --orphan gh-pages
git rm -rf . > /dev/null 2>&1 || true
git clean -fxd
cp -r ../$(basename $GITHUB_WORKSPACE)/* .
cp -r deploy/* .
git add .
git commit -m "Deploy updates from $(date)" || echo "No changes to commit"
git push origin gh-pages

0 comments on commit ae3a167

Please sign in to comment.