Google Fonts Report #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate report for google/fonts repo | |
name: Google Fonts Report | |
on: | |
schedule: | |
# Every Monday at 12am | |
- cron: '0 0 * * 1' | |
# for testing every 5th minute e.g 1:05, 1:10, 1:15... | |
#- cron: '1/5 * * * *' | |
jobs: | |
gen_report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: pip install gftools[qa] | |
- name: Generate report | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
mkdir out | |
gftools push-stats . out/index.html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out |