diff --git a/.github/workflows/hexo.yml b/.github/workflows/hexo.yml index 86e7962..3ed2abe 100644 --- a/.github/workflows/hexo.yml +++ b/.github/workflows/hexo.yml @@ -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 "misaka@yangrucheng.top" + 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 \ No newline at end of file diff --git a/_config.butterfly.yml b/_config.butterfly.yml index e5046c0..71c12c5 100644 --- a/_config.butterfly.yml +++ b/_config.butterfly.yml @@ -6,6 +6,7 @@ nav: # 网站 default_top_img: /static/images/默认背景.jpg +favicon: /favicon.ico # 社交图标 social: