Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
tags:
- "create-awesome-python-app@*"
workflow_dispatch:
inputs:
tag:
description: "Tag name (create-awesome-python-app@X.Y.Z)"
required: false
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- run: uv sync --group dev
- run: uv build --package create-awesome-python-app
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: dist/*
- name: Publish to PyPI (OIDC)
if: startsWith(github.ref, 'refs/tags/')
run: echo "PyPI trusted publishing wired in #58 — placeholder job"
9 changes: 9 additions & 0 deletions docs/VERSIONING.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
# Versioning

CPA uses **GitHub Releases + tags** with hatchling package versions.

Recommended flow (release-please or manual tags):

1. Bump `version` in package pyproject.toml files
2. Tag `create-awesome-python-app@X.Y.Z`
3. `publish.yml` builds and publishes to PyPI via OIDC (see #58)
Loading