This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch mkdocs
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git

commit e9478bd20633bcf361f5d4f602d0bc9d0158a16e
Author: ken.lj <[email protected]>
AuthorDate: Thu Aug 13 13:52:16 2020 +0800

    add 'deploy' github actions
---
 .github/workflows/CI.yml     | 24 ----------------------
 .github/workflows/deploy.yml | 47 +++++++++++++++-----------------------------
 2 files changed, 16 insertions(+), 55 deletions(-)

diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
deleted file mode 100644
index b603871..0000000
--- a/.github/workflows/CI.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: CI
-
-on: [pull_request]
-
-jobs:
-  Build:
-    runs-on: ubuntu-latest
-
-    strategy:
-      matrix:
-        node-version: [8.x]
-
-    steps:
-    - uses: actions/checkout@v1
-    - name: Use Node.js ${{ matrix.node-version }}
-      uses: actions/setup-node@v1
-      with:
-        node-version: ${{ matrix.node-version }}
-    - name: Npm install and build
-      run: |
-        npm install
-        npm run build --if-present
-      env:
-        CI: true
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 99db037..39a3dcc 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -13,34 +13,19 @@ jobs:
       - uses: actions/setup-python@v2
         with:
           python-version: 3.x
-      - run: |
-          pip install \
-            mkdocs-material \
-            mkdocs-minify-plugin>=0.3 \
-            mkdocs-redirects>=1.0
-      - run: mkdocs build -f mkdocs-en.yml -d ./output/en-us
-        cp -R images ./output/en-us
-        mkdocs build -f mkdocs_zh.yml -d ./output/zh_cn
-        cp -R images $(OUTDIR)/zh_cn
-
-jobs:
-  Build-Deploy:
-    runs-on: ubuntu-18.04
-    steps:
-    - uses: actions/checkout@master
-
-    - name: Use Node.js 10.x
-      uses: actions/setup-node@v1
-      with:
-        node-version: 10.x
-    - name: Build
-      run: |
-        npm install && npm run build && mkdir deploy-dist && cp -R zh-cn/ 
en-us/ build/ img/ schema/ md_json/ documentations/ deploy-dist/ && mv 
.htaccess *.html *.xml deploy-dist/
-    - name: Deploy
-      uses: peaceiris/[email protected]
-      env:
-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        PUBLISH_BRANCH: asf-site
-        PUBLISH_DIR: ./deploy-dist
-      with:
-        keepFiles: true
+      - name: Build
+        - run: |
+              pip install \
+                  mkdocs-material>=5.3.2 \
+                  mkdocs-minify-plugin>=0.3 \
+                  mkdocs-redirects>=1.0
+              mkdocs build -f mkdocs-en.yml -d ./output/en-us && mkdocs build 
-f mkdocs_zh.yml -d ./output/zh-cn
+        - run: mkdir deploy-dist && cp -R img ./output/zh-cn/ && cp -R img 
./output/en-us/ && cp -R ./output/* deploy-dist/
+      - name: Deploy
+        uses: peaceiris/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          PUBLISH_BRANCH: asf-site
+          PUBLISH_DIR: ./deploy-dist
+        with:
+          keepFiles: true
\ No newline at end of file

Reply via email to