Merge pull request #41 from cryptimeleon/dependabot/bundler/rexml-3.3.6 #41
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
name: Build and deploy Jekyll site to Github Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
public-current-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Install Jupyter and nbtojekyll | |
run: | | |
python -m pip install notebook | |
git clone https://github.com/rheitjoh/nbtojekyll.git | |
cd nbtojekyll | |
python -m pip install --upgrade --force-reinstall --no-deps --no-cache-dir . | |
- name: Set up JDK 1.11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Install Java Jupyter Kernel | |
run: | | |
wget "https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip" | |
unzip ijava-1.3.0.zip -d ijava-1.3.0 | |
cd ijava-1.3.0 | |
python install.py --user | |
jupyter kernelspec list | |
- name: Convert Jupyter notebooks | |
run: | | |
jupyter nbtojekyll getting-started/pairing-tutorial.ipynb --output getting-started/pairing-tutorial.md --binder-link https://mybinder.org/v2/gh/cryptimeleon/cryptimeleon.github.io/main\?filepath\=getting-started%2Fpairing-tutorial.ipynb --image-dir assets/images/pairing-tutorial --md-title "Pairing Tutorial" --binder-link-cell 1 --enable-toc --enable-mathjax --execute | |
jupyter nbtojekyll getting-started/protocols-tutorial.ipynb --output getting-started/protocols-tutorial.md --binder-link https://mybinder.org/v2/gh/cryptimeleon/cryptimeleon.github.io/main\?filepath\=getting-started%2Fprotocols-tutorial.ipynb --md-title "Protocols Tutorial" --binder-link-cell 0 --enable-toc --enable-mathjax --execute | |
jupyter nbtojekyll getting-started/5-minute-tutorial.ipynb --output getting-started/5-minute-tutorial.md --binder-link https://mybinder.org/v2/gh/cryptimeleon/cryptimeleon.github.io/main\?filepath\=getting-started%2F5-minute-tutorial.ipynb --md-title "5 Minute Tutorial" --binder-link-cell 0 --enable-toc --enable-mathjax --execute | |
# Use GitHub Actions' cache to shorten build times and decrease load on servers | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: helaili/jekyll-action@v2 | |
with: | |
token: ${{ secrets.JEKYLL_PAT }} | |
target_branch: "gh-pages" | |
target_path: / | |
keep_history: true |