Merge pull request #122 from tsgit/main #116
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 docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: ${{ github.repository == 'slaclab/nalms' }} | |
runs-on: ubuntu-latest | |
name: Build docs | |
strategy: | |
matrix: | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-activate-base: true | |
activate-environment: true | |
python-version: ${{ matrix.python-version }} | |
channels: anaconda,conda-forge | |
channel-priority: flexible | |
- name: Build package | |
shell: bash -l {0} | |
run: | | |
conda config --set always_yes yes --set changeps1 no | |
conda install --file docs-requirements.txt | |
mkdocs build | |
mkdocs gh-deploy --force |