Browse Source

Merge pull request #120 from springload/feature/actions

Add Github Actions workflows to build it
Jan Nakladal 6 years ago
parent
commit
2f85b84106
2 changed files with 28 additions and 25 deletions
  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

File diff suppressed because it is too large
+ 0 - 25
.travis.yml