From 462315100bdaaa31dd3d63070d55499b87b688de Mon Sep 17 00:00:00 2001 From: Polaris_Light <995905922@qq.com> Date: Thu, 14 Sep 2023 22:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BF=E5=B7=B4=E9=98=BF=E5=B7=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9531b53..105c107 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,22 +21,21 @@ jobs: - name: Configure git run: | - git config --global user.name "[bot] gh-action deploy" - git config --global user.email "995905922@qq.com" + git config user.name "[bot] gh-action deploy" + git config user.email "995905922@qq.com" - name: Build run: | set -e yarn build - - name: Commit + - name: Deploy + env: + GHP_REPO: github.com/FDCraft/fdcraft.github.io + GPA_TOKEN: ${{ secrets.GPA_TOKEN }} run: | cd docs/.vitepress/dist git init git add -A git commit -m 'gh-action deploy' - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GPA_TOKEN }} \ No newline at end of file + git push -f --set-upstream https://${GPA_TOKEN}@${GHP_REPO} master \ No newline at end of file