Skip to content

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update gitee workflow

SWHL4e19ca3e71da
diff --git a/.github/workflows/gitee_mirror.yml b/.github/workflows/gitee_mirror.yml
index 8f7040d..a26471e 100644
--- a/.github/workflows/gitee_mirror.yml
+++ b/.github/workflows/gitee_mirror.yml
@@ -1,27 +1,31 @@
-name: Gitee repos mirror periodic sync job
+name: Auto deploy gitee
on:
- # push推送时触发
push:
+ branches: [ main ]
jobs:
- sync:
- # 前置步骤和环境
- needs: pages
+ build:
runs-on: ubuntu-latest
+
steps:
- # 直接调别人的轮子
- # 功能是把这个 Github 仓库和 Gitee 仓库同步
- - name: Sync to Gitee
- uses: wearerequired/git-mirror-action@master
+ - uses: actions/checkout@v2
+
+ - name: Set SSH Environment
env:
- # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
- # 配置就不多说了,解释一下原因
- # 因为这步骤功能是从 GitHub 推更新到 Gitee
- # 所以需要 Gitee 持有私钥,Github 持有公钥
- SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_SSH_KEY }}
- with:
- # 注意替换为你的 GitHub 源仓库地址
- source-repo: "[email protected]:RapidAI/RapidOCR.git"
- # 注意替换为你的 Gitee 目标仓库地址
- destination-repo: "[email protected]:RapidAI/RapidOCR.git"
\ No newline at end of file
+ DEPLOY_KEYS: ${{ secrets.GITEE_PRIVATE_SSH_KEY }}
+ run: |
+ mkdir -p ~/.ssh/
+ echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa
+ chmod 600 ~/.ssh/id_rsa
+ chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
+
+ - name: Submit code to repository
+ run: |
+ git config --global user.name "SWHL"
+ git config --global user.email "[email protected]"
+ git remote remove origin
+ git remote add origin [email protected]:RapidAI/RapidOCR.git
+ git add .
+ git commit -m 'Auto deploy gitee'
+ git push origin main
\ No newline at end of file
diff --git a/.github/workflows/make-linux.yml b/.github/workflows/make-linux.yml
index fa4c29d..25d65d5 100644
--- a/.github/workflows/make-linux.yml
+++ b/.github/workflows/make-linux.yml
@@ -1,9 +1,9 @@
name: CMake-linux
on:
- push:
- branches:
- - main
+ # push:
+ # branches:
+ # - main
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)