action: update git action, patch files.

This commit is contained in:
Nick Peng
2023-03-11 22:06:03 +08:00
parent 8bf1108503
commit 69fd23d756
6 changed files with 84 additions and 76 deletions

View File

@@ -42,6 +42,12 @@ jobs:
cd /root
mkdocs build
mv /root/en/site /root/site/en
# patch 404 page, remove absolute path
sed 's@="/@="@g' -i /root/site/404.html
sed 's@="/@="@g' -i /root/site/en/404.html
# patch language change url
find /root/site -name "*.htm*" -print0 | xargs -0 sed -i 's/href=" .."/href=".."/g'
find /root/site -name "*.htm*" -print0 | xargs -0 sed -i 's@/ .."@/.."@g'
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact