1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 14:21:47 +03:00
fonts/.github/workflows/report.yaml

36 lines
874 B
YAML
Raw Normal View History

2021-09-01 11:56:50 +03:00
# Generate report for google/fonts repo
name: Google Fonts Report
on:
schedule:
# Every Monday at 12am
2021-09-03 12:49:53 +03:00
- cron: '0 0 * * 1'
2021-09-01 11:56:50 +03:00
# for testing every 5th minute e.g 1:05, 1:10, 1:15...
2021-09-03 12:49:53 +03:00
#- cron: '1/5 * * * *'
2021-09-01 11:56:50 +03:00
jobs:
gen_report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: pip install gftools[qa]
- name: Generate report
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
2021-10-25 13:39:49 +03:00
mkdir out
gftools push-stats . out/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
2021-09-01 11:56:50 +03:00
with:
2021-10-25 13:39:49 +03:00
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out