You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2023/02/22 03:55:27 UTC
[dubbo-website] 05/08: add test workflow
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
commit e0f4882e23fd7e186af5837410cc22d13d729d3a
Author: chickenlj <ke...@gmail.com>
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