Skip to content

Commit

Permalink
fix: update workflow to use new build method
Browse files Browse the repository at this point in the history
  • Loading branch information
cuppajoeman committed Oct 6, 2024
1 parent ddd83a7 commit 7d19659
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/openmath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,32 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- run: |
cd scripts/precompiled_html_generation
ls
npm ci
node compile_latex_to_mathml.js
node dom_adjustments.js

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install BeautifulSoup
run: |
pip install beautifulsoup4
- name: Run Custom Script
run: |
cd scripts/precompiled_html_generation_new/
cd fast-html
python main.py --base-dir ../../../html_copy/ --gen-dir ../../../generated_html --base-template-file ../templates/openmath_template.html --custom-template-conversion-file ../main.py
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dom_adjusted'
path: '../../../generated_html'

deploy:
needs: build # Add this line to make deploy wait for build
needs: build # Wait for the build job to complete
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 7d19659

Please sign in to comment.