diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4e4fdc..4b3c1b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,5 +22,16 @@ jobs: with: java-version: 1.8 + - name: Sync repository + uses: x-dr/sync-repo-to-gitee@v1.0 + env: + # 在 Settings->Secrets 配置 GITEE_KEY + SSH_KEY: ${{ secrets.GITEE_KEY }} + with: + # GitHub存储库的SSH URL. + github-repo: git@github.com:xiaohai2271/blog-backEnd.git + # Gitee存储库的SSH URL. + gitee-repo: git@gitee.com:xiaohai2271/blog-backEnd.git + - name: Deploy run: mvn -B test --file pom.xml && curl http://bt.celess.cn:2271/hook?access_key=$KEY