This is an automated email from the ASF dual-hosted git repository.
albumenj 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 dedfbb8774e Add website history deploy
dedfbb8774e is described below
commit dedfbb8774edfe24b0280877796d36b932d2039c
Author: Albumen Kevin <[email protected]>
AuthorDate: Sat Oct 7 17:36:42 2023 +0800
Add website history deploy
---
.asf.yaml | 4 +--
.github/workflows/build_and_deploy_history.yml | 40 ++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 0c690b2b1c6..8498654b5a0 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -28,5 +28,5 @@ publish:
whoami: asf-site-v2
staging:
profile: ~
- whoami: asf-site-v2
- autostage: site/*
+ whoami: asf-staging
+ autostage: history/*
diff --git a/.github/workflows/build_and_deploy_history.yml
b/.github/workflows/build_and_deploy_history.yml
new file mode 100644
index 00000000000..a16c4768f16
--- /dev/null
+++ b/.github/workflows/build_and_deploy_history.yml
@@ -0,0 +1,40 @@
+name: Website History Deploy
+
+on:
+ push:
+ branches:
+ - 'history/**'
+
+jobs:
+ deploy_main:
+ runs-on: ubuntu-latest
+ name: Build and Deploy To Main
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: recursive
+ fetch-depth: 0
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '16'
+ - 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 mod clean && hugo --minify
+ - name: Copy other files
+ run: cp .htaccess ./public
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: ${{ github.ref_name }}-staging
+ publish_dir: ./public
+ keep_files: true