main.yml 934 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: CI
  2. on:
  3. push:
  4. branches: master
  5. pull_request:
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v6
  11. - uses: ruby/setup-ruby@v1
  12. with:
  13. ruby-version: "3.3"
  14. - run: gem install awesome_bot
  15. - run: awesome_bot README.md --request-delay 0.1 --allow-redirect --allow-dupe --allow-ssl
  16. - uses: actions/setup-python@v5
  17. with:
  18. python-version: "3.14"
  19. - run: python .github/api.py
  20. - uses: actions/upload-pages-artifact@v3
  21. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  22. with:
  23. path: ./dist
  24. deploy:
  25. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  26. runs-on: ubuntu-latest
  27. needs: build
  28. environment:
  29. name: github-pages
  30. url: ${{ steps.deployment.outputs.page_url }}
  31. steps:
  32. - uses: actions/deploy-pages@v4
  33. id: deployment