Skip to content

cd: fix install uv in publishing stage #2

cd: fix install uv in publishing stage

cd: fix install uv in publishing stage #2

Workflow file for this run

name: cd
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Sync dependencies
run: uv sync --all-extras --dev
- name: Build package
run: uv build
- name: Store all dists
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish:
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dorm-project
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Publish to PyPI with GitHub as Trusted Publisher
env:
UV_PYPI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv publish