This is an automated email from the ASF dual-hosted git repository.
sunyi 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 3ab3596 fix: auto deploy (#140)
3ab3596 is described below
commit 3ab3596d6719fabe93ce8599d8f531eaa1963616
Author: 琚致远 <[email protected]>
AuthorDate: Sat Jan 16 10:50:36 2021 +0800
fix: auto deploy (#140)
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
---
.github/workflows/deploy.yml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index b87951e..935c0fc 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -43,11 +43,10 @@ jobs:
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/[email protected]
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
- build_dir: website/build/apisix-website
- target_branch: asf-site
- keep_history: true
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: website/build/apisix-website
+ publish_branch: asf-site