浏览代码

Add Github Actions workflows to build it

Remove TravisCI config

Fixes #119
Eugene Dementiev 6 年之前
父节点
当前提交
3431ce1cc2
共有 2 个文件被更改,包括 28 次插入25 次删除
  1. 28 0
      .github/workflows/main.yml
  2. 0 25
      .travis.yml

+ 28 - 0
.github/workflows/main.yml

@@ -0,0 +1,28 @@
+name: CI
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v1
+    - uses: actions/setup-ruby@v1
+      with:
+        ruby-version: '2.x'
+    - run: gem install awesome_bot
+    - run: awesome_bot README.md --allow-redirect --allow-dupe --allow-ssl
+    - uses: actions/setup-python@v1
+      with:
+        python-version: '3.x'
+        architecture: 'x64'
+    - run: mkdir -p dist/api/v1/ && python .github/api.py
+    - name: deploy
+      if: github.ref == 'master'
+      uses: peaceiris/actions-gh-pages@v2.1.0
+      env:
+        ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+        PUBLISH_BRANCH: gh-pages
+        PUBLISH_DIR: ./dist

文件差异内容过多而无法显示
+ 0 - 25
.travis.yml