Skip to content

Commit

Permalink
update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Nov 26, 2024
1 parent 95bfc7e commit 6a7b68e
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,33 @@ concurrency:
group: "pages"
cancel-in-progress: true


env:
UV_VERSION: "0.4.29"

jobs:
build:
defaults:
run:
working-directory: python
name: Build docs.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python '3.10'
uses: actions/setup-python@v5
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
python-version: '3.10'
cache: "pip"
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Install Tierkreis
run: pip install '.[typecheck,docs]'

- name: Build docs
run: |
cd docs
./build.sh
run: uv run --group docs scripts/build.sh
- name: Upload artifact.
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build/
path: ./python/docs/build/

publish:
name: Publish docs.
defaults:
run:
working-directory: python
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 6a7b68e

Please sign in to comment.