From: Ir1d Date: Wed, 28 Aug 2019 18:05:10 +0000 (+0800) Subject: use travis ci to push X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=84faed01ba37ebf16dbf2b02b61fbfff0a39b523;p=oi-wiki%2Fmain.git use travis ci to push --- diff --git a/.travis.yml b/.travis.yml index 7a158855..f459fca9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,9 @@ after_deploy: - 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 config user.name "Travis Builder" + - git config user.email "hi@oi-wiki.org" - git commit --author "24OI-bot <15963390+24OI-bot@users.noreply.github.com>" -m "build cdn files" - - git push origin cdn-pages + - 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