Skip to content

update events

update events #782

Workflow file for this run

name: CI/CD
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache Python modules
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pipenv
pipenv install --dev --deploy
- name: Build slides
run: |
pipenv run jupyter nbconvert \
--to=slides \
--output-dir='' \
--output='slides' \
--SlidesExporter.file_extension=.html \
--SlidesExporter.reveal_theme=white \
content/events/*/slides.ipynb
- name: Build static site
run: |
pipenv run mkdocs build --strict
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: dist
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: contains(github.ref, 'main')
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build
path: dist
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4