report.yaml 995 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 Cairo (Ubuntu)
  21. run: sudo apt-get install libcairo2-dev
  22. - name: Install dependencies
  23. run: pip install gftools[qa]
  24. - name: Generate report
  25. env:
  26. GH_TOKEN: ${{ secrets.GH_TOKEN }}
  27. run: |
  28. mkdir out
  29. gftools push-stats . out/index.html
  30. cp .ci/tags.html out/tags.html
  31. - name: Deploy
  32. uses: peaceiris/actions-gh-pages@v3
  33. if: ${{ github.ref == 'refs/heads/main' }}
  34. with:
  35. github_token: ${{ secrets.GITHUB_TOKEN }}
  36. publish_dir: ./out