diff --git a/.github/workflows/sync-cnb.yml b/.github/workflows/sync-cnb.yml new file mode 100644 index 0000000..d32959b --- /dev/null +++ b/.github/workflows/sync-cnb.yml @@ -0,0 +1,25 @@ +name: Sync to CNB +on: [push] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Sync to CNB Repository + run: | + docker run --rm \ + -v ${{ github.workspace }}:${{ github.workspace }} \ + -w ${{ github.workspace }} \ + -e PLUGIN_TARGET_URL="https://cnb.cool/aingdesk/AingDesk.git" \ + -e PLUGIN_AUTH_TYPE="https" \ + -e PLUGIN_USERNAME="cnb" \ + -e PLUGIN_PASSWORD=${{ secrets.CNB_GIT_PASSWORD }} \ + -e PLUGIN_BRANCH="main" \ + -e PLUGIN_GIT_USER="aingdesk" \ + -e PLUGIN_GIT_EMAIL="support@aingdesk.com" \ + -e PLUGIN_FORCE="true" \ + tencentcom/git-sync \ No newline at end of file diff --git a/README.md b/README.md index 4797265..b675409 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,4 @@ Deploy DeepSeek or other AI models on your computer with just one click. 📥 **Quick Installation** - [Download from the official website.](https://www.aingdesk.com/en/download.html) - [Download from GitHub.](https://github.com/aingdesk/AingDesk/releases) +- [Download from CNB](https://cnb.cool/aingdesk/AingDesk/-/releases/)