diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 191d026..67b7097 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,12 @@ on: branches: - gh-pages +env: + GIT_USER: fengjiansu + GIT_EMAIL: c2306547791@gmail.com + DEPLOY_REPO: fengjiansu/fengjiansu.github.io + DEPLOY_BRANCH: gh-pages + jobs: build: runs-on: ubuntu-latest @@ -12,6 +18,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Checkout deploy repo + uses: actions/checkout@v4 + with: + repository: ${{ env.DEPLOY_REPO }} + ref: ${{ env.DEPLOY_BRANCH }} + path: .deploy_git - name: Setup Node.js uses: actions/setup-node@v4