mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Create gen-gh-pages-data.yml
This commit is contained in:
26
.github/workflows/gen-gh-pages-data.yml
vendored
Normal file
26
.github/workflows/gen-gh-pages-data.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user