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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6b965d7  Create deploy_site.yml
6b965d7 is described below

commit 6b965d7640d21f991df37ae708468cb10b94bbaf
Author: ken.lj <[email protected]>
AuthorDate: Sun Nov 1 00:34:38 2020 +0800

    Create deploy_site.yml
---
 .github/workflows/deploy_site.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/.github/workflows/deploy_site.yml 
b/.github/workflows/deploy_site.yml
new file mode 100644
index 0000000..63c2eab
--- /dev/null
+++ b/.github/workflows/deploy_site.yml
@@ -0,0 +1,33 @@
+name: Website deploy
+
+on:
+  push:
+    branches:
+    - mkdocs
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-python@v2
+        with:
+          python-version: 3.x
+      - name: Build
+        run: |
+          pip install \
+              mkdocs-material>=5.5.3 \
+              mkdocs-minify-plugin>=0.3 \
+              mkdocs-redirects>=1.0
+          mkdocs --version
+          echo "removing previous static files from ./output" && rm -rf 
./output
+          mkdocs build -f mkdocs_en.yml -d ./output/en-us && mkdocs build -f 
mkdocs_zh.yml -d ./output/zh-cn
+          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

Reply via email to