Skip to content

build(deps): Bump uv from 0.5.4 to 0.5.5 (#94) #29

build(deps): Bump uv from 0.5.4 to 0.5.5 (#94)

build(deps): Bump uv from 0.5.4 to 0.5.5 (#94) #29

Workflow file for this run

name: Publish Documentation
on:
push:
branches:
- main
tags:
- '**'
env:
FORCE_COLOR: "1"
COLUMNS: "120"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checkout and prepare git.
- name: checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/checkout@v4
- name: Set git credentials
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
# Setup uv and install dependencies.
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
cache: pip
cache-dependency-path: requirements-test.txt
check-latest: true
- run: pip install uv
- run: uv venv --no-python-downloads
- run: >-
uv pip install
--require-hashes
--no-deps
-r requirements-docs.txt
- run: uv pip install -e . --no-deps
- run: uv pip check
- if: "github.ref == 'refs/heads/main'"
run: uv run mike deploy --branch=gh-pages dev --push
- if: "startsWith(github.ref, 'refs/tags/')"
id: check-version
uses: samuelcolvin/check-python-version@v4.1
with:
version_file_path: 'src/goose/_version.py'
skip_env_check: true
version_pattern: (?im)^(?:__version__|VERSION)\s*=(?:.*=)?\s*(['"])v?(?P<version>.+?)\1
- if: "startsWith(github.ref, 'refs/tags/') && !fromJSON(steps.check-version.outputs.IS_PRERELEASE)"
run: uv run mike deploy --branch=gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push