| 1234567891011121314151617181920212223242526272829303132333435363738 |
- name: CI
- on:
- push:
- branches: master
- pull_request:
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v6
- - uses: ruby/setup-ruby@v1
- with:
- ruby-version: "3.3"
- - run: gem install awesome_bot
- - run: awesome_bot README.md --request-delay 0.1 --allow-redirect --allow-dupe --allow-ssl
- - uses: actions/setup-python@v5
- with:
- python-version: "3.14"
- - run: python .github/api.py
- - uses: actions/upload-pages-artifact@v3
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- with:
- path: ./dist
- deploy:
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- runs-on: ubuntu-latest
- needs: build
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- steps:
- - uses: actions/deploy-pages@v4
- id: deployment
|