This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch chore-cdn
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/chore-cdn by this push:
new 83e5a79 chore: replace static files
83e5a79 is described below
commit 83e5a792004e13168763f82ec09b2fc01d82add8
Author: juzhiyuan <[email protected]>
AuthorDate: Sun Oct 24 01:11:11 2021 +0800
chore: replace static files
---
.github/workflows/deploy.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 4d4850b..e798054 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -41,6 +41,8 @@ jobs:
run: |
cd website && yarn build
cp ../.asf.yaml ./build
+ # NOTE: Use jsDelivr to load JS files from the asf-site branch
+ sed -i ''
's/return"assets\/js\/"/return"https:\/\/cdn.jsdelivr.net\/gh\/apache\/apisix-website@asf-site\/assets\/js\/"/g'
./build/assets/js/runtime~main.**.js
- name: Deploy
uses: peaceiris/[email protected]