main.yml 689 B

1234567891011121314151617181920212223242526272829
  1. name: CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - uses: actions/setup-ruby@v1
  9. with:
  10. ruby-version: '2.x'
  11. - run: gem install awesome_bot
  12. - run: awesome_bot README.md --allow-redirect --allow-dupe --allow-ssl
  13. - uses: actions/setup-python@v1
  14. with:
  15. python-version: '3.x'
  16. architecture: 'x64'
  17. - run: mkdir -p dist/api/v1/ && python .github/api.py
  18. - name: deploy
  19. if: github.ref == 'master'
  20. uses: peaceiris/actions-gh-pages@v2.1.0
  21. env:
  22. ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  23. PUBLISH_BRANCH: gh-pages
  24. PUBLISH_DIR: ./dist