This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch refactor/next-2
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/refactor/next-2 by this push:
new 20921516a8 add test workflow
20921516a8 is described below
commit 20921516a86ab10c8e22a14ce3e7d8441f415095
Author: chickenlj <[email protected]>
AuthorDate: Wed Feb 22 10:58:31 2023 +0800
add test workflow
---
.github/workflows/build_and_deploy_next.yml | 46 +++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/.github/workflows/build_and_deploy_next.yml
b/.github/workflows/build_and_deploy_next.yml
new file mode 100644
index 0000000000..61b4d73dd7
--- /dev/null
+++ b/.github/workflows/build_and_deploy_next.yml
@@ -0,0 +1,46 @@
+name: Next Website Deploy
+
+on:
+ push:
+ branches:
+ - refactor/next
+
+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
+ fetch-depth: 0
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ - name: Set up Go 1.18.3
+ uses: actions/setup-go@v2
+ with:
+ go-version: 1.18.3
+ - name: Setup Docsy
+ run: sudo npm install -D --save autoprefixer && sudo npm install -D
postcss && 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: Copy other files
+ run: cp .htaccess ./public & cp 404.html ./public
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: github.ref == 'refs/heads/refactor/next'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: next-asf-site
+ publish_dir: ./public
+ keep_files: false