-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 979 Bytes
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: docs
on:
push: { branches: [ 'main' ] }
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Initialize Conda
run: |
source $CONDA/etc/profile.d/conda.sh
conda config --add channels "conda-forge"
conda create -y -n logic1 sage
conda activate logic1
- name: Install dependencies using pip
run: pip install .
- name: Build doc
run: |
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' } ]