Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/python-mike-delete/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
uses: astral-sh/setup-uv@v6
with:
python-version: '3.11'
enable-cache: true

- name: Install docs dependencies
shell: bash
run: |
cd python
pip install -e .[docs-build]
uv sync --frozen --python 3.11 --extra docs-build

- name: Fetch gh-pages branch
shell: bash
Expand All @@ -37,8 +37,8 @@ runs:
run: |
cd python
echo "Deleting docs for: $VERSION"
if mike list | grep -q "$VERSION"; then
mike delete "$VERSION" --push
if uv run --no-sync mike list | grep -q "$VERSION"; then
uv run --no-sync mike delete "$VERSION" --push
echo "Successfully deleted docs for $VERSION"
else
echo "No docs found for $VERSION, nothing to delete"
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/python-mike-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
uses: astral-sh/setup-uv@v6
with:
python-version: '3.11'
enable-cache: true

- name: Install docs dependencies
shell: bash
run: |
cd python
pip install -e .[docs-build]
uv sync --frozen --python 3.11 --extra docs-build

- name: Fetch gh-pages branch
shell: bash
Expand Down Expand Up @@ -64,4 +64,4 @@ runs:
MIKE_ARGS+=(--push --update-aliases --prop-set "hidden=$HIDDEN")

echo "Running: mike deploy ${MIKE_ARGS[*]}"
mike deploy "${MIKE_ARGS[@]}"
uv run --no-sync mike deploy "${MIKE_ARGS[@]}"
5 changes: 3 additions & 2 deletions .github/workflows/python_build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
types: [ opened, synchronize, closed ]
paths:
- '.github/actions/python-mike-*/**'
- 'python/docs/**'
- 'python/lib/**'
- 'python/mkdocs.yml'
Expand Down Expand Up @@ -34,15 +35,15 @@ jobs:
run: |
# Use commit hash as version for dev deployments
VERSION=$(git rev-parse --short HEAD)

if [[ "${{ github.event_name }}" == "pull_request" ]]; then
# Use PR number as alias for PR deployments
ALIAS="pr-${{ github.event.number }}"
else
# Use 'dev' for manual workflow dispatch
ALIAS="dev"
fi

echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "alias=$ALIAS" >> $GITHUB_OUTPUT
echo "Dev deployment - Version: $VERSION, Alias: $ALIAS"
Expand Down
Loading