main.yml 926 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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: lycheeverse/lychee-action@v2
  12. with:
  13. args: --verbose --no-progress --accept 200,429 README.md
  14. fail: true
  15. - uses: actions/setup-python@v5
  16. with:
  17. python-version: "3.14"
  18. - run: python .github/api.py
  19. - uses: actions/upload-pages-artifact@v3
  20. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  21. with:
  22. path: ./dist
  23. deploy:
  24. if: github.event_name == 'push' && github.ref == 'refs/heads/master'
  25. runs-on: ubuntu-latest
  26. needs: build
  27. permissions:
  28. pages: write
  29. id-token: write
  30. environment:
  31. name: github-pages
  32. url: ${{ steps.deployment.outputs.page_url }}
  33. steps:
  34. - uses: actions/deploy-pages@v4
  35. id: deployment