Skip to content

Bugfix: Deps without version constraints syntax fix #5

Bugfix: Deps without version constraints syntax fix

Bugfix: Deps without version constraints syntax fix #5

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main # or your default branch
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
pip install --no-deps -e .
- name: Build documentation
run: |
cd docs
make html
# Create .nojekyll file to allow files and folders starting with an underscore
touch _build/html/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/_build/html
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2