-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Update 上传到pages分支
1 parent
de85ac3
commit f441f82
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|