mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
01a3c5be8a
Replaces every floating tag in our workflow and composite action files with an immutable 40-character commit SHA, keeping the original `# vX` comment so Dependabot can still propose version bumps. 186 occurrences across 25 workflows and 2 composite actions. Also widens the github-actions Dependabot entry to use the plural `directories` key with `/.github/actions/*` so composite actions under `.github/actions/<name>/action.yml` are kept up to date. Previously Dependabot only scanned `.github/workflows` and the repo-root `action.yml`, leaving our `python-setup` and `sample-validation-setup` composite actions unmaintained.
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Python - Create Docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
env:
|
|
# Configure a constant location for the uv cache
|
|
UV_CACHE_DIR: /tmp/.uv-cache
|
|
|
|
jobs:
|
|
python-build-docs:
|
|
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, 'python-')
|
|
name: Python Build Docs
|
|
runs-on: ubuntu-latest
|
|
environment: "integration"
|
|
env:
|
|
UV_PYTHON: "3.11"
|
|
defaults:
|
|
run:
|
|
working-directory: python
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
with:
|
|
version-file: "python/pyproject.toml"
|
|
enable-cache: true
|
|
cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }}
|
|
cache-dependency-glob: "**/uv.lock"
|
|
- name: Install dependencies
|
|
run: uv sync --all-packages --dev --docs
|
|
- name: Build the docs
|
|
run: uv run poe docs-full
|
|
# Upload docs to learn gh
|