From a26c5f6769a8331533c52cef391145919115c1c4 Mon Sep 17 00:00:00 2001 From: billchenchina Date: Wed, 27 Jan 2021 21:53:54 +0800 Subject: [PATCH] Remove travis --- .github/workflows/build.yml | 5 ++++- .travis.yml | 44 -------------------------------------------- 2 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41aa012d..ba1d88c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,5 +43,8 @@ jobs: publish_dir: ./site force_orphan: true - name: BaiduPusher - if: ${{ github.event_name == 'push' && env.BaiduToken }} + if: ${{ github.event_name == 'push' && secrets.BaiduToken }} + env: + site: oi-wiki.org + BaiduToken: ${{ secrets.BaiduToken }} run: chmod +x scripts/BaiduPusher.sh && ./scripts/BaiduPusher.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 16a9680f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,44 +0,0 @@ -language: python -cache: - pip: true - directories: - - node_modules -python: - - 3.6 -services: - - docker -before_install: - - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - - source ~/.nvm/nvm.sh - - nvm install 12 -install: - - pip install -r requirements.txt - - npm install . -script: - - set -e - - chmod +x ./scripts/build.sh && ./scripts/build.sh - - mkdocs build -v - - node --max_old_space_size=3072 ./scripts/render_math.js - - npx gulp minify - - python scripts/gen_redirect.py - - touch ./site/.nojekyll # Stop GitHub Pages from ignoring files with underscores prefixed - - cp -r site/ site-cdn-pages - - node ./scripts/replace_cdn.js - - set +e -deploy: - provider: pages - skip_cleanup: true - github-token: $GH_TOKEN - local-dir: site - on: - branch: master -after_deploy: - - chmod +x scripts/BaiduPusher.sh && ./scripts/BaiduPusher.sh - - cd site-cdn-pages && git init - - git checkout -b cdn-pages - - 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 remote add gh-token "https://${GH_TOKEN}@github.com/OI-wiki/OI-wiki.git"; - - git push gh-token cdn-pages -f -- 2.11.0