Skip to content

generate typeracer graph #600

generate typeracer graph

generate typeracer graph #600

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 }}