Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Add gen sdk workflow

SWHLd6add16a3ad9
diff --git a/.github/workflows/auto_gen_sdk.yml b/.github/workflows/auto_gen_sdk.yml
new file mode 100644
index 0000000..ae85893
--- /dev/null
+++ b/.github/workflows/auto_gen_sdk.yml
@@ -0,0 +1,34 @@
+name: CI
+
+on:
+ push:
+ branches: [ main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set SSH Environment
+ env:
+ DEPLOY_KEYS: ${{ secrets.GEN_PYTHON_SDK }}
+ run: |
+ mkdir -p ~/.ssh/
+ echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa
+ chmod 600 ~/.ssh/id_rsa
+ chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
+
+ - name: Run setup.py
+ run: |
+ cd release/python_sdk/_gen_sdk
+ bash auto_deploy.sh
+
+ - name: Submit code to repository
+ run: |
+ git config --global user.name "SWHL"
+ git config --global user.email "[email protected]"
+ git add .
+ git commit -m 'Auto generate python sdk'
+ git push origin main
\ No newline at end of file