Setup python with uv #41
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | ||
Check failure on line 1 in .github/workflows/release.yml
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v5 | ||
- name: "Set up Python" | ||
- name: Install uv and set the Python version | ||
uses: astral-sh/setup-uv@v6 | ||
with: | ||
python-version: 3.13 | ||
- name: Build | ||
run: uv build | ||
- name: Publish package distributions to PyPI | ||
run: | | ||
uv publish | ||
- name: Install dependencies | ||
run: | | ||
uv sync --group docs | ||
- name: Deploy docs | ||
run: | | ||
uv run dbt-score list -f markdown -n dbt_score.rules.generic --title Generic > docs/rules/generic.md | ||
uv run mkdocs gh-deploy --force | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
generateReleaseNotes: true |