Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
W1ndys authored Jan 22, 2025
1 parent e454e17 commit 6abe344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
sh build.sh
- name: Deploy to gh-pages branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone --single-branch --branch gh-pages https://github.com/${{ github.repository }} deploy || git clone --single-branch https://github.com/${{ github.repository }} deploy
git clone --single-branch --branch gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} deploy || git clone --single-branch https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} deploy
cd deploy
git checkout gh-pages || git checkout -b gh-pages
rm -rf *
Expand Down

0 comments on commit 6abe344

Please sign in to comment.