From 9817785c66a13caa681a8e9e272f2ae949233542 Mon Sep 17 00:00:00 2001
From: yhliang <68215459+yhliang-aslp@users.noreply.github.com>
Date: 星期二, 18 四月 2023 19:28:39 +0800
Subject: [PATCH] Merge pull request #380 from alibaba-damo-academy/main

---
 .github/workflows/main.yml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 5966c84..2497ac2 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -6,6 +6,7 @@
   push:
     branches:
       - dev_wjm
+      - main
       - dev_lyh
 
 jobs:
@@ -21,10 +22,6 @@
         with:
           docs-folder: "docs_cn/"
           pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme"
-      - uses: ammaraskar/sphinx-action@master
-        with:
-          docs-folder: "docs_m2met2/"
-          pre-build-command: "pip install jinja2 sphinx_rtd_theme myst-parser"
 
       - name: deploy copy
         if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm' || github.ref == 'refs/heads/dev_lyh'
@@ -40,6 +37,9 @@
           mkdir public/m2met2
           touch public/m2met2/.nojekyll
           cp -r docs_m2met2/_build/html/* public/m2met2/
+          mkdir public/m2met2_cn
+          touch public/m2met2_cn/.nojekyll
+          cp -r docs_m2met2_cn/_build/html/* public/m2met2_cn/
 
       - name: deploy github.io pages
         if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm' || github.ref == 'refs/heads/dev_lyh'
@@ -47,4 +47,4 @@
         env:
           GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
           PUBLISH_BRANCH: gh-pages
-          PUBLISH_DIR: public
\ No newline at end of file
+          PUBLISH_DIR: public

--
Gitblit v1.9.1