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