Switch main branch to Vitis and update environment for 1.0.0. #140
Workflow file for this run
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: deploy-book | |
# Only run this when the master branch changes | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# This job installs dependencies, build the book, and pushes it to `gh-pages` | |
jobs: | |
deploy-book: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install dependencies | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
use-mamba: true | |
channels: conda-forge | |
activate-environment: hls4ml-tutorial | |
environment-file: environment.yml | |
python-version: 3.10.16 | |
auto-activate-base: false | |
# Check dependencies | |
- name: Check Miniconda | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
printenv | sort | |
- name: Build the book | |
shell: bash -l {0} | |
run: | | |
jupyter contrib nbextension install --user | |
jupyter nbextension enable --py widgetsnbextension | |
jupyter-book build . | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _build/html | |
force_orphan: true | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' |