You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/11/22 03:45:55 UTC
[apisix-website] branch master updated: fix(CD): deploy with
correct images (#86)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new eca1dbd fix(CD): deploy with correct images (#86)
eca1dbd is described below
commit eca1dbdc6e0ec4229909ef5325aff5541e079e8a
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sun Nov 22 11:45:46 2020 +0800
fix(CD): deploy with correct images (#86)
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* feat: added apisix's nav
* feat: trigger CI
* Update sidebars.json
* Update deploy.yml
---
.github/workflows/deploy.yml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 1fc2c42..3eaff34 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -28,15 +28,20 @@ jobs:
git clone https://github.com/apache/apisix.git
cp -r apisix/doc/images ./website/static && rm -rf apisix/doc/images
cp -r apisix/doc ./docs/apisix
- cd ./docs/apisix
- find . -type f -name "*.md" -print0 | xargs -0 sed -i '' -e 's/\.\.\/images/https\:\/\/apisix\.apache\.org\/images/g'
- find . -type f -name "*.md" -print0 | xargs -0 sed -i '' -e 's/\.\/images/https\:\/\/apisix\.apache\.org\/images/g'
- name: Build
run: cd website && yarn && yarn build
- name: Copy files
- run: cd website && cd build && cd apisix-website && cp ../../../README.md ./ && cp ../../../.asf.yaml ./
+ run: |
+ cd website/build/apisix-website
+ cp ../../../README.md ./ && cp ../../../.asf.yaml ./
+ cd apisix
+ find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/src="\.\.\/\.\.\/doc\/images/src="https:\/\/apisix\.apache\.org\/images/g'
+ find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/src="\.\.\/\.\.\/images/src="https:\/\/apisix\.apache\.org\/images/g'
+ find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/src="\.\.\/images/src="https:\/\/apisix\.apache\.org\/images/g'
+ find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/src="\.\/images/src="https:\/\/apisix\.apache\.org\/images/g'
+ find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/src="images/src="https:\/\/apisix\.apache\.org\/images/g'
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v2.0.1