Skip to content

feat: add Docker-Release job to workflow for building and pushing Doc… #13

feat: add Docker-Release job to workflow for building and pushing Doc…

feat: add Docker-Release job to workflow for building and pushing Doc… #13

Workflow file for this run

name: Build uv cache
on:
push:
branches:
- '**'
paths:
- 'uv.lock'
- 'pyproject.toml'
workflow_dispatch:
jobs:
build-cache:
runs-on: ubuntu-latest
env:
UV_VERSION: '0.9.28'
PYTHON_VERSION: '3.13'
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
enable-cache: false
- name: Install dependencies and populate cache
run: |
echo "Building global UV cache..."
uv sync
echo "Cache populated successfully"
- name: Save uv caches
uses: actions/cache/save@v5
with:
path: |
~/.cache/uv
~/.local/share/uv
.venv
key: uv-${{ github.ref_name }}-${{ env.UV_VERSION }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}