Skip to content
9 changes: 9 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
options:
- "true"
- "false"
tag:
description: "Release tag to build when force publishing (e.g. v2.0.0)"
required: false
default: ""
type: string

permissions:
contents: write
Expand Down Expand Up @@ -79,9 +84,13 @@ jobs:
name: pypi-production
url: https://pypi.org/project/runpod/
steps:
# Build the tagged release commit, not the commit that triggered this run.
# The version comes from setuptools_scm, so building a later commit
# publishes a .devN version (2.0.0 shipped as 2.0.1.dev1 this way).
- uses: actions/checkout@v7
with:
fetch-depth: 0
ref: ${{ needs.release-please.outputs.tag_name || inputs.tag || github.sha }}

- name: Install uv
uses: astral-sh/setup-uv@v7
Expand Down
Loading