liuxiran commented on a change in pull request #162:
URL: https://github.com/apache/apisix-website/pull/162#discussion_r570781257
##########
File path: .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
Review comment:
got it, thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]