- git push coding master:master -f
- git fetch origin gh-pages
- git checkout -b gh-pages origin/gh-pages
- - git push coding gh-pages:coding-pages -f
+ - git push coding gh-pages:gh-pages -f
- git checkout -b cdn-pages origin/gh-pages
- find ./ -type f -name "*.html" -exec sed -i -E 's/([^"]*)(assets[^"]*)/https:\/\/cdn-for-oi-wiki.billchn.com\/\2/g' {} +
- git add .
- git commit --author "24OI-bot <15963390+24OI-bot@users.noreply.github.com>" -m "build cdn files"
- git remote add gh-token "https://${GH_TOKEN}@github.com/OI-wiki/OI-wiki.git";
- git push gh-token cdn-pages -f
- - git push coding cdn-pages:cdn-pages -f
+ - git push coding cdn-pages:coding-pages -f