docs #12
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: docs | |
on: | |
push: { branches: [ 'main' ] } | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda env create -f environment.yaml | |
conda activate logic1_minimal | |
conda env list | |
conda list | |
export PYTHONPATH="$PYTHONPATH:$(pwd)" | |
cd doc | |
make html | |
- uses: actions/upload-pages-artifact@v3 | |
with: { path: 'doc/build/html' } | |
deploy: | |
needs: build | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: { name: 'docs', url: '${{ steps.deployment.outputs.page_url }}' } | |
steps: [ { id: 'deployment', uses: 'actions/deploy-pages@v4' } ] |