Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 上传到pages分支
Browse files Browse the repository at this point in the history
YangRucheng committed Sep 22, 2024
1 parent de85ac3 commit f441f82
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/hexo.yml
Original file line number Diff line number Diff line change
@@ -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-1314"
cd public
git init --initial-branch=main
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git add .
git commit -m "Deploy to GitHub Pages"
git push --force origin main:pages
1 change: 1 addition & 0 deletions _config.butterfly.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ nav:

# 网站
default_top_img: /static/images/默认背景.jpg
favicon: /favicon.ico

# 社交图标
social:

0 comments on commit f441f82

Please sign in to comment.