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 38dadd65543 Update history deploy
38dadd65543 is described below
commit 38dadd655436cd72acae4807761ecd33ee42de99
Author: Albumen Kevin <[email protected]>
AuthorDate: Sat Oct 7 17:58:03 2023 +0800
Update history deploy
---
.github/workflows/build_and_deploy_history.yml | 4 +++-
.htaccess | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build_and_deploy_history.yml
b/.github/workflows/build_and_deploy_history.yml
index a16c4768f16..c25fd94c3a7 100644
--- a/.github/workflows/build_and_deploy_history.yml
+++ b/.github/workflows/build_and_deploy_history.yml
@@ -29,8 +29,10 @@ jobs:
env:
HUGO_ENV: production
run: hugo mod clean && hugo --minify
- - name: Copy other files
+ - name: Copy htaccess files
run: cp .htaccess ./public
+ - name: Copy other files
+ run: cp .asf.yaml ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
diff --git a/.htaccess b/.htaccess
index dd31cb52167..116914f6f57 100644
--- a/.htaccess
+++ b/.htaccess
@@ -17,6 +17,7 @@
RewriteCond "%{HTTP:Accept-Language}" ^zh
RewriteCond %{HTTP_HOST} !cn
RewriteCond %{HTTP_HOST} !static
+ RewriteCond %{HTTP_HOST} !dubbo-
RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=301]
RewriteCond %{SERVER_PORT} !^443$