Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7c510d0
feat: add PyPI publishing workflow and readme metadata
mnriem Jun 10, 2026
8d4d975
fix: address PR review feedback on publish workflow
mnriem Jun 10, 2026
8e1d9dd
fix: use absolute URLs for README images (PyPI compatibility)
mnriem Jun 10, 2026
bdefe46
fix: address second review round
mnriem Jun 10, 2026
fe39c6c
fix: address third review round
mnriem Jun 11, 2026
25fa308
fix: add contents:read to build job, clarify manual publish
mnriem Jun 16, 2026
f49e9e6
fix: force tag resolution and validate before checkout
mnriem Jun 17, 2026
00ee706
fix: address review - links, install cmd, python pin
mnriem Jun 17, 2026
2e6a633
fix: address review - python setup, docs alignment, publish flag
mnriem Jun 17, 2026
550045b
fix: clarify PyPI availability timing in docs
mnriem Jun 17, 2026
9fd0fbc
fix: quote version specifier in release notes install command
mnriem Jun 17, 2026
88e95b5
fix: use specify-cli@latest consistently
mnriem Jun 17, 2026
85e29cb
fix: pin release notes to exact version, clarify manual publish
mnriem Jun 17, 2026
ca8240c
fix: keep source install as primary, PyPI as alternative
mnriem Jun 18, 2026
ef3f18f
fix: align checkout pin, soften PyPI wording, absolute links
mnriem Jun 22, 2026
007a3fd
fix: align docs and release notes with pre-transfer state
mnriem Jun 22, 2026
d6460dd
fix: revert release notes to match main
mnriem Jun 22, 2026
2fec9c4
fix: revert README and installation docs to match main
mnriem Jun 22, 2026
a931e7c
fix: fail fast if build produces no artifacts
mnriem Jun 22, 2026
9eb1fd7
fix: align artifact action pins with repo lockfiles
mnriem Jun 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Publish to PyPI

on:
workflow_dispatch:
Comment thread
mnriem marked this conversation as resolved.
inputs:
tag:
description: 'Release tag to publish (e.g., v0.10.1)'
required: true
type: string

permissions:
contents: read
Comment thread
Copilot marked this conversation as resolved.

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
Comment thread
Copilot marked this conversation as resolved.
steps:
- name: Verify tag format
run: |
TAG="${{ inputs.tag }}"
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: '$TAG' is not a valid release tag (expected vX.Y.Z)"
exit 1
fi

- name: Checkout release tag
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: refs/tags/${{ inputs.tag }}

- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0

Comment thread
mnriem marked this conversation as resolved.
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.13"

- name: Verify tag matches package version
run: |
TAG_VERSION="${{ inputs.tag }}"
TAG_VERSION="${TAG_VERSION#v}"
PROJECT_VERSION="$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml","rb"))["project"]["version"])')"
if [[ "$TAG_VERSION" != "$PROJECT_VERSION" ]]; then
echo "Error: Tag version ($TAG_VERSION) does not match pyproject.toml version ($PROJECT_VERSION)"
exit 1
fi

- name: Build package
run: uv build

- name: Upload build artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/
Comment thread
Copilot marked this conversation as resolved.
if-no-files-found: error

publish:
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
Comment thread
Copilot marked this conversation as resolved.
actions: read
steps:
- name: Download build artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist/

- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
Comment thread
mnriem marked this conversation as resolved.

- name: Publish to PyPI
run: uv publish
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "specify-cli"
version = "0.11.5.dev0"
description = "Specify CLI, part of GitHub Spec Kit. A tool to bootstrap your projects for Spec-Driven Development (SDD)."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"typer>=0.24.0",
Expand Down