1234567891011121314151617181920212223242526272829 |
- name: CI
- on:
- push: {branches: ["*", "*/*"]}
- 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 --request-delay 0.1 --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 == 'refs/heads/master'
- uses: peaceiris/actions-gh-pages@v2.1.0
- env:
- ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- PUBLISH_BRANCH: gh-pages
- PUBLISH_DIR: ./dist
|