From 84faed01ba37ebf16dbf2b02b61fbfff0a39b523 Mon Sep 17 00:00:00 2001 From: Ir1d Date: Thu, 29 Aug 2019 02:05:10 +0800 Subject: [PATCH] use travis ci to push --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.0