From f50b4be1d72153052845441886eddf7d81fe0533 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Thu, 21 Mar 2024 17:15:05 +0800 Subject: [PATCH] chore: auto sync to gitee --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5b1abe6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: deploy + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + if: github.repository == 'doocs/awesome-ai' + steps: + - name: Sync to gitee.com + uses: wearerequired/git-mirror-action@master + env: + SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }} + with: + source-repo: git@github.com:doocs/awesome-ai.git + destination-repo: git@gitee.com:Doocs/awesome-ai.git + + - name: Build Gitee Pages + uses: yanglbme/gitee-pages-action@main + with: + gitee-username: yanglbme + gitee-password: ${{ secrets.GITEE_PASSWORD }} + gitee-repo: doocs/awesome-ai + branch: main \ No newline at end of file