This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch cdn
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/cdn by this push:
new 5c8bb4e1894 [CDN] Upload files to OSS (#51)
5c8bb4e1894 is described below
commit 5c8bb4e18943f4d326deb83246120df91a91f867
Author: Jeffrey <[email protected]>
AuthorDate: Wed Aug 17 20:30:49 2022 +0800
[CDN] Upload files to OSS (#51)
---
.github/workflows/manual-deploy-website.yml | 13 +++++++
README.md | 6 ++++
.../How-to-deploy-your-own-website-by-Vercel.md | 38 +++++++++++++++++++++
repo-docs/images/create a new project.png | Bin 0 -> 462705 bytes
repo-docs/images/deploy your website.png | Bin 0 -> 208211 bytes
repo-docs/images/find your forked repo.png | Bin 0 -> 188243 bytes
repo-docs/images/get your own domain.png | Bin 0 -> 366526 bytes
repo-docs/images/import your forked repo.png | Bin 0 -> 157419 bytes
repo-docs/images/install vercel 2.png | Bin 0 -> 275389 bytes
repo-docs/images/install vercel.png | Bin 0 -> 144074 bytes
repo-docs/images/login-with-github.png | Bin 0 -> 94852 bytes
repo-docs/images/vercel portal.png | Bin 0 -> 347103 bytes
12 files changed, 57 insertions(+)
diff --git a/.github/workflows/manual-deploy-website.yml
b/.github/workflows/manual-deploy-website.yml
index 9cd93d454bf..c51ecfeb55b 100644
--- a/.github/workflows/manual-deploy-website.yml
+++ b/.github/workflows/manual-deploy-website.yml
@@ -11,6 +11,7 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
+ environment: Production
steps:
- name: Checkout
uses: actions/checkout@master
@@ -37,6 +38,17 @@ jobs:
touch build/.dummy
ls build
export DORIS_COMMIT=`git rev-parse HEAD`
+
+ - name: Upload files to OSS
+ uses: fangbinwei/aliyun-oss-website-action@v1
+ with:
+ accessKeyId: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
+ accessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
+ bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
+ # use your own endpoint
+ endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
+ folder: build
+
- name: Deploy website
if: ${{ github.event.inputs.branch == 'master' }}
run: |
@@ -58,6 +70,7 @@ jobs:
git add .
git commit -m "Automated deployment with doris master"
git push --verbose "https://${{ secrets.GITHUB_TOKEN
}}@github.com/apache/doris-website.git" asf-site:asf-site
+
- name: Deploy Branch
if: ${{ github.event.inputs.branch != 'master' }}
uses: peaceiris/actions-gh-pages@v3
diff --git a/README.md b/README.md
index d55a18291cb..cb3c1d5924e 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,9 @@ There are 2 Github Actions:
To view the website, navigate to
[https://doris.apache.org](https://doris.apache.org)
+## How to deploy your own Doris Website by Vercel
+[How to deploy your own Doris Website by
Vercel](./repo-docs/How-to-deploy-your-own-website-by-Vercel.md)
+
## Run & Build Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern
static website generator.
@@ -358,6 +361,9 @@ Directory structure description:
## 修改文档(中文版)
+### 通过托管服务 Vercel 部署自己的 Doris Website 站点
+[通过托管服务 Vercel 部署自己的 Doris Website
站点](./repo-docs/How-to-deploy-your-own-website-by-Vercel.md).
+
### website目录结构
```
diff --git a/repo-docs/How-to-deploy-your-own-website-by-Vercel.md
b/repo-docs/How-to-deploy-your-own-website-by-Vercel.md
new file mode 100644
index 00000000000..2b3971cb9c5
--- /dev/null
+++ b/repo-docs/How-to-deploy-your-own-website-by-Vercel.md
@@ -0,0 +1,38 @@
+# How to deploy your own Doris Website by Vercel
+
+### Step1: Fork Doris-Website 仓库 https://github.com/apache/doris-website
+### Step2: 打开 https://vercel.com 点击 Login,使用 Github 登录
+<img src="./images/vercel%20portal.png" width="600" alt="create a new project">
+</br>
+<img src="./images/login-with-github.png" width="600" alt="create a new
project">
+</br>
+
+### Step3: 创建新项目
+<img src="./images/create%20a%20new%20project.png" width="600" alt="create a
new project">
+</br>
+
+### Step4: 选择 Fork 的组织
+<img src="./images/find%20your%20forked%20repo.png" width="600" alt="create a
new project">
+</br>
+<img src="./images/install%20vercel.png" width="600" alt="create a new
project">
+</br>
+<img src="./images/install%20vercel%202.png" width="600" alt="create a new
project">
+</br>
+
+### Step5: 部署项目
+<img src="./images/import%20your%20forked%20repo.png" width="600" alt="create
a new project">
+</br>
+<img src="./images/deploy%20your%20website.png" width="600" alt="create a new
project">
+</br>
+
+### Finish: 完成并获取官网链接
+<img src="./images/get%20your%20own%20domain.png" width="600" alt="create a
new project">
+</br>
+
+### 文档数量较多,部署时间大概在20min左右,请耐心等待。
+
+
+### 部署完成后会获得一个域名,点击就可以直接访问了
+
+
+### 注意:fork 的站点不能和Doris官网同步,需要手动 Merge Upstream 或者编写自动同步脚本,当commit 被合入到 fork
的仓库后,Vercel 会自动部署包含最新 commit 的网站。
\ No newline at end of file
diff --git a/repo-docs/images/create a new project.png
b/repo-docs/images/create a new project.png
new file mode 100644
index 00000000000..2b9b2e5878b
Binary files /dev/null and b/repo-docs/images/create a new project.png differ
diff --git a/repo-docs/images/deploy your website.png b/repo-docs/images/deploy
your website.png
new file mode 100644
index 00000000000..7e25f040d86
Binary files /dev/null and b/repo-docs/images/deploy your website.png differ
diff --git a/repo-docs/images/find your forked repo.png b/repo-docs/images/find
your forked repo.png
new file mode 100644
index 00000000000..15f22f1f38d
Binary files /dev/null and b/repo-docs/images/find your forked repo.png differ
diff --git a/repo-docs/images/get your own domain.png b/repo-docs/images/get
your own domain.png
new file mode 100644
index 00000000000..3f5082f8907
Binary files /dev/null and b/repo-docs/images/get your own domain.png differ
diff --git a/repo-docs/images/import your forked repo.png
b/repo-docs/images/import your forked repo.png
new file mode 100644
index 00000000000..142419739d2
Binary files /dev/null and b/repo-docs/images/import your forked repo.png differ
diff --git a/repo-docs/images/install vercel 2.png b/repo-docs/images/install
vercel 2.png
new file mode 100644
index 00000000000..864de835e89
Binary files /dev/null and b/repo-docs/images/install vercel 2.png differ
diff --git a/repo-docs/images/install vercel.png b/repo-docs/images/install
vercel.png
new file mode 100644
index 00000000000..bbc6213ce66
Binary files /dev/null and b/repo-docs/images/install vercel.png differ
diff --git a/repo-docs/images/login-with-github.png
b/repo-docs/images/login-with-github.png
new file mode 100644
index 00000000000..40accb3061e
Binary files /dev/null and b/repo-docs/images/login-with-github.png differ
diff --git a/repo-docs/images/vercel portal.png b/repo-docs/images/vercel
portal.png
new file mode 100644
index 00000000000..d7cc4ab5053
Binary files /dev/null and b/repo-docs/images/vercel portal.png differ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]