update for maixcdk

This commit is contained in:
Neucrack
2024-11-08 19:09:21 +08:00
parent 88ef7f4fdb
commit 50f4d1ca65
3 changed files with 8 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
repository_dispatch: repository_dispatch:
types: [update_maixpy_doc] types: [update_maixpy_doc, update_maixcdk_doc]
permissions: write-all permissions: write-all
@@ -50,9 +50,14 @@ jobs:
out_dir=out`python3 -c 'import json; f=open("site_config.json");config=json.load(f);print(config["site_root_url"])'` out_dir=out`python3 -c 'import json; f=open("site_config.json");config=json.load(f);print(config["site_root_url"])'`
echo "== clone MaixPy gh-pages ==" echo "== clone MaixPy gh-pages =="
git clone https://github.com/sipeed/MaixPy --depth=1 --branch=gh-pages git clone https://github.com/sipeed/MaixPy --depth=1 --branch=gh-pages
echo "== copy maixpy dir to out_dir ==" echo "== copy MaixPy dir to out_dir =="
mv MaixPy/maixpy $out_dir mv MaixPy/maixpy $out_dir
rm -rf MaixPy rm -rf MaixPy
echo "== clone MaixCDK gh-pages =="
git clone https://github.com/sipeed/MaixCDK --depth=1 --branch=gh-pages
echo "== copy MaixCDK dir to out_dir =="
mv MaixCDK/maixcdk $out_dir
rm -rf MaixCDK
mv $out_dir ../ mv $out_dir ../
remote_addr=`git remote get-url --push origin` remote_addr=`git remote get-url --push origin`
remote_addr=`echo $remote_addr| awk -F'://' '{print $2}'` remote_addr=`echo $remote_addr| awk -F'://' '{print $2}'`

View File

@@ -1,6 +1,6 @@
--- ---
title: MaixCDK -- 快速落地 AI 视觉、听觉类项目 title: MaixCDK -- 快速落地 AI 视觉、听觉类项目
layout: redirect layout: redirect
redirect_url: https://github.com/sipeed/MaixCDK redirect_url: https://wiki.sipeed.com/maixcdk/
--- ---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 252 KiB