generated from ssciwr/jupyter-slides-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
199 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ jobs: | |
name: Publish reveal.js slides | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.12 | ||
- run: pip install -r requirements.txt | ||
- run: sudo apt update -qy && sudo apt install ffmpeg -qy | ||
- run: jupyter nbconvert *.ipynb --to slides --execute | ||
|
@@ -28,10 +28,20 @@ jobs: | |
sleep 10 | ||
done | ||
- run: mv *.slides.html *.pdf dist/. && mv dist/index.slides.html dist/index.html | ||
- uses: JamesIves/[email protected] | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
name: Deploy to gh-pages | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
branch: gh-pages | ||
folder: dist | ||
single-commit: true | ||
path: "dist/" | ||
|
||
deploy: | ||
if: github.ref == 'refs/heads/main' | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/deploy-pages@v4 | ||
id: deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
- id: black-jupyter | ||
|
||
- repo: https://github.com/kynan/nbstripout | ||
rev: 0.6.1 | ||
rev: 0.7.1 | ||
hooks: | ||
- id: nbstripout |
Oops, something went wrong.