Skip to content

Merge pull request #74 from ChristopherMayes/keep_images #19

Merge pull request #74 from ChristopherMayes/keep_images

Merge pull request #74 from ChristopherMayes/keep_images #19

Workflow file for this run

name: Publish Documentation
on:
push:
branches:
- main
jobs:
deploy:
if: ${{ github.repository == 'slaclab/pyemittance' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
activate-environment: pyemittance-dev
environment-file: environment-dev.yml
- name: Execute notebooks
shell: bash -l {0}
run: |
pip install --no-dependencies .
bash run_notebooks.bash
- name: Build Docs
shell: bash -l {0}
run: |
mkdocs build
zip -r pyemittance-examples.zip docs/examples/
mv pyemittance-examples.zip ./site/assets/.
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site/