main.yml 745 B

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