Skip to content

Change poetry to uv (#358) #216

Change poetry to uv (#358)

Change poetry to uv (#358) #216

Workflow file for this run

name: docs
on:
push:
branches: [main]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs-deploy:
if: github.ref == 'refs/heads/main' && github.repository == 'stfc/janus-core'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.7"
python-version: "3.12"
- name: Install dependencies
run: uv sync
- name: Build docs
run: cd docs && uv run make html
- name: upload
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './docs/build/html/.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4