fix: Update workflows (#86) #59
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: doc-deploy | |
on: | |
push: | |
branches: [master] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: false | |
activate-environment: pyrorisks | |
- run: conda install conda-lock | |
- run: conda-lock install -n pyro-risks pyrorisks.conda-lock.yml | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.1 | |
virtualenvs-create: false | |
- name: Install dependencies | |
run: poetry install | |
- name: Build documentation | |
run: | | |
poetry run sphinx-build docs/source docs/build -a -v | |
- name: Install SSH Client 🔑 | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
- name: Deploy to Github Pages | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: gh-pages | |
FOLDER: 'docs/build' | |
COMMIT_MESSAGE: '[skip ci] Documentation updates' | |
CLEAN: true | |
SSH: true | |