From f441f82bde454ed66d5276016b86d453729da6bf Mon Sep 17 00:00:00 2001 From: YangRucheng Date: Sun, 22 Sep 2024 14:50:57 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=B8=8A=E4=BC=A0=E5=88=B0pages?= =?UTF-8?q?=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/hexo.yml | 11 +++++++++++ _config.butterfly.yml | 1 + 2 files changed, 12 insertions(+) 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: