mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
27 lines
533 B
YAML
27 lines
533 B
YAML
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
|