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 2021/02/05 09:11:33 UTC
[apisix-website] branch master updated: fix: update CD
configuration (#162)
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 a8e72d1 fix: update CD configuration (#162)
a8e72d1 is described below
commit a8e72d1963defb0632e20f582e9056594d8027c8
Author: 琚致远 <ju...@apache.org>
AuthorDate: Fri Feb 5 17:11:27 2021 +0800
fix: update CD configuration (#162)
---
.github/workflows/deploy.yml | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 935c0fc..5d8a16b 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -23,30 +23,13 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- - name: Clone apisix's docs from repo & update image's link
- run: |
- 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
-
- name: Build
run: cd website && yarn && yarn build
- - name: Copy files
- 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: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: website/build/apisix-website
+ publish_dir: website/build
publish_branch: asf-site