mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
29 lines
630 B
YAML
29 lines
630 B
YAML
name: Generate gh-pages data
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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: Checkout gh-pages
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: 'gh-pages'
|
|
- name: Generate data.js
|
|
run: |
|
|
python genData.py
|
|
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
|