report.yaml 914 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Generate report for google/fonts repo
  2. name: Google Fonts Report
  3. on:
  4. schedule:
  5. # Every Monday at 12am
  6. - cron: '0 0 * * 1'
  7. # for testing every 5th minute e.g 1:05, 1:10, 1:15...
  8. #- cron: '1/5 * * * *'
  9. jobs:
  10. gen_report:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. with:
  15. fetch-depth: 0
  16. - name: Set up Python
  17. uses: actions/setup-python@v4
  18. with:
  19. python-version: "3.10"
  20. - name: Install dependencies
  21. run: pip install gftools[qa]
  22. - name: Generate report
  23. env:
  24. GH_TOKEN: ${{ secrets.GH_TOKEN }}
  25. run: |
  26. mkdir out
  27. gftools push-stats . out/index.html
  28. cp .ci/tags.html out/tags.html
  29. - name: Deploy
  30. uses: peaceiris/actions-gh-pages@v3
  31. if: ${{ github.ref == 'refs/heads/main' }}
  32. with:
  33. github_token: ${{ secrets.GITHUB_TOKEN }}
  34. publish_dir: ./out