Create gen-gh-pages-data.yml

This commit is contained in:
Luke Weiler
2022-12-21 14:24:16 -05:00
committed by GitHub
parent e1390d707b
commit 705f365598

26
.github/workflows/gen-gh-pages-data.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Generate gh-pages data
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up Python
uses: actions/setup=python@v2
with:
python-version: '3.x'
- name: Install mathgenerator
run: |
python -m pip install --upgrade pip
pip install .
- name: Generate data.js
run: |
git checkout gh-pages
python genData.py
git commit -am "update data.js"
git push