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 8653cfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/hexo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./public

- name: Deploy to GitHub Pages
run: |
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 8653cfd

Please sign in to comment.