report.yaml 875 B

123456789101112131415161718192021222324252627282930313233343536
  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. - name: Deploy
  29. uses: peaceiris/actions-gh-pages@v3
  30. if: ${{ github.ref == 'refs/heads/main' }}
  31. with:
  32. github_token: ${{ secrets.GITHUB_TOKEN }}
  33. publish_dir: ./out