You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2020/11/16 11:23:21 UTC
[dubbo-website] branch master updated: Create build_and_deploy.yml
This is an automated email from the ASF dual-hosted git repository.
iluo 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 072ad07 Create build_and_deploy.yml
072ad07 is described below
commit 072ad0707b74dcc72097fd07fa66ab06798e53ed
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Mon Nov 16 19:23:10 2020 +0800
Create build_and_deploy.yml
---
.github/workflows/build_and_deploy.yml | 43 ++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml
new file mode 100644
index 0000000..0c91b26
--- /dev/null
+++ b/.github/workflows/build_and_deploy.yml
@@ -0,0 +1,43 @@
+name: Website Deploy
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ types: [ opened, synchronize, reopened, closed ]
+ branches:
+ - master
+
+
+jobs:
+ build_and_deploy_job:
+ if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
+ runs-on: ubuntu-latest
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: recursive
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ - name: Setup Docsy
+ run: git submodule update --init --recursive && sudo npm install -D --save autoprefixer && sudo npm install -D --save postcss-cli
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+ - name: Build
+ env:
+ HUGO_ENV: production
+ run: hugo --minify
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: asf-site
+ publish_dir: ./public
+ keep_files: true