Skip to content

Commit

Permalink
Update 上传到pages分支
Browse files Browse the repository at this point in the history
  • Loading branch information
YangRucheng committed Sep 22, 2024
1 parent de85ac3 commit 6e3c8fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/hexo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./public

- name: Deploy to GitHub Pages
run: |
git config --global user.email "[email protected]"
git config --global user.name "Misaka"
cd public
git init --initial-branch=main
git remote add origin https://github.com/${{ github.repository }}.git
git add .
git commit -m "Deploy to GitHub Pages"
git push --force origin main:pages

0 comments on commit 6e3c8fb

Please sign in to comment.