Skip to content

Merge pull request #8 from spatial-model-editor/pre-commit-ci-update-… #41

Merge pull request #8 from spatial-model-editor/pre-commit-ci-update-…

Merge pull request #8 from spatial-model-editor/pre-commit-ci-update-… #41

Workflow file for this run

name: Publish
on: push
jobs:
publish:
name: Publish reveal.js slides
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -r requirements.txt
- run: sudo apt update -qy && sudo apt install ffmpeg -qy
- run: jupyter nbconvert *.ipynb --to slides --execute
- run: |
mkdir dist
mv README.md dist/index.md
mv *.slides.html dist/.
- run: cp *.xml dist/.
- uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Deploy to gh-pages
with:
branch: gh-pages
folder: dist
single-commit: true