Skip to content

feat: add GitHub Actions release workflow to build and publish Debian packages#39

Draft
imediava-doctolib wants to merge 1 commit into
mainfrom
feat/debian-release-workflow
Draft

feat: add GitHub Actions release workflow to build and publish Debian packages#39
imediava-doctolib wants to merge 1 commit into
mainfrom
feat/debian-release-workflow

Conversation

@imediava-doctolib

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/release.yml: triggered on vX.Y.Z tag pushes, builds one .deb per supported PostgreSQL version (14–18) using cargo-pgrx, and attaches them as assets to the GitHub Release
  • Adds docs/debian-packaging.md: end-to-end documentation covering the release process, S3-backed APT repository setup with deb-s3, and client-side configuration

How it works

The workflow has two jobs:

  1. create-release — creates the GitHub Release from the tag (idempotent)
  2. build-deb (matrix: PG 14–18) — installs PostgreSQL dev headers, builds the extension with cargo pgrx build --features pgN, packages the resulting .so + .control + .sql into a .deb, and uploads it to the release

Test plan

  • Push a vX.Y.Z tag and verify the workflow runs successfully for all 5 PG versions
  • Check that the 5 .deb files are attached to the GitHub Release
  • Install one of the .deb files manually on a test machine and verify CREATE EXTENSION pg_no_seqscan works

Notes

  • cargo-pgrx version is pinned to =0.16.1 to match Cargo.toml
  • The docs/debian-packaging.md also documents the optional next step of publishing to an S3-backed APT repository via deb-s3 (not included in this workflow yet)

🤖 Generated with Claude Code

Adds a GitHub Actions workflow triggered on vX.Y.Z tags that builds
one .deb per supported PostgreSQL version (14–18) and attaches them
as assets to the GitHub Release.

Also adds docs/debian-packaging.md documenting the full process from
tagging a release to consuming packages via an S3-backed APT repository.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imediava-doctolib imediava-doctolib added the ai-augmented PR has been augmented by AI label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-augmented PR has been augmented by AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant