Skip to content

feat(release): add release-please automation and bump version to 0.1.0#327

Open
tildesrc wants to merge 1 commit into
mainfrom
panopticon/release-versioning-publish
Open

feat(release): add release-please automation and bump version to 0.1.0#327
tildesrc wants to merge 1 commit into
mainfrom
panopticon/release-versioning-publish

Conversation

@tildesrc

Copy link
Copy Markdown
Contributor

Summary

Based on #255, with two corrections: pyproject.toml uses name = "panopticon-app" (not panopticon), so the release-please-config.json package-name and docs/releasing.md PyPI trusted publisher values are fixed accordingly. Also bumps to 0.1.0 (PR #255 left everything at 0.0.1).

One-time setup required after merge (documented in docs/releasing.md)

  1. Create a repository secret named RELEASE_PLEASE_TOKEN — a fine-grained PAT or GitHub App token with Contents, Issues, and Pull requests write access. The default GITHUB_TOKEN cannot be used because PRs it opens don't trigger follow-on workflows.
  2. Create a GitHub environment named pypi (Settings → Environments). Optionally require manual approval as a final gate before each PyPI upload.
  3. Configure a PyPI trusted publisher with these exact values:
    PyPI project/package: panopticon-app
    Owner:                Unsupervisedcom
    Repository:           panopticon
    Workflow filename:    release.yml
    Environment name:     pypi
    
    If panopticon-app doesn't exist on PyPI yet, add a pending trusted publisher from the PyPI account Publishing page — the first successful publish creates the project.

After merge

release-please will open a chore(main): release 0.1.0 PR. Merging that PR publishes a GitHub Release, which triggers .github/workflows/release.yml to upload panopticon-app 0.1.0 to PyPI.

Important: the PyPI publish must complete before running panopticon build for that version, because panopticon build bakes pip install panopticon-app==0.1.0 into the base container image.

Wires up release-please to auto-open release PRs on each push to main,
and a publish workflow that runs CI then uploads to PyPI on GitHub Release
publication via OIDC trusted publishing. Bumps the version to 0.1.0 so
the first release ships the post-#261/#262/#263/#267 packaging fixes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tildesrc
tildesrc force-pushed the panopticon/release-versioning-publish branch from 291469f to a1bc19a Compare July 15, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant