-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 944 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build dashboard
on:
push:
schedule:
- cron: '12 1 * * *'
env:
GF_PATH: /home/runner/work/gf-dashboard/gf-dashboard/fonts
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Write out secret
run: echo "${{ secrets.GF_PUSH_CONFIG }}" | base64 -d > ~/.gf_push_config.ini
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Setup requirements
run: pip3 install -r requirements.txt
- name: Clone google/fonts
uses: actions/checkout@v4
with:
repository: google/fonts
path: fonts
- name: Run dashboard builder
run: python3 dashboard.py
- uses: stefanzweifel/git-auto-commit-action@v4
name: Commit downloaded fonts and data
with:
file_pattern: docs