generate typeracer graph #600
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
name: generate typeracer graph | |
on: | |
schedule: | |
- cron: "0 */24 * * *" | |
workflow_dispatch: | |
jobs: | |
generate_graph: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Running script | |
run: | | |
mkdir exports | |
python script.py | |
- name: push exports to typeracer-readme branch | |
uses: crazy-max/ghaction-github-pages@v2.5.0 | |
with: | |
target_branch: typeracer-readme | |
build_dir: exports | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |