Skip to content

feat: add a shared publish-release action #66

Closed

Description

@uniqueg

Every release workflow in the organisation should create its GitHub release itself, in the organisation's release notes format, instead of leaving it to a manual step after the tag:

  1. the curated notes of the release (intro paragraph and grouped sections: Breaking changes, Features, Security, Fixes, Documentation, Maintenance), kept in the repository, e.g., docs/releases/X.Y.Z.md;
  2. ## Commits: GitHub's generated notes, verbatim (including "New Contributors"), without their ## What's Changed header;
  3. last, GitHub's generated **Full Changelog**: … line.

Releases are marked as pre-releases until 1.0.0 (and for a/b/rc versions).

FOCA does this in its own release workflow (publish job and scripts/release_notes.py). This issue adds a shared composite action, actions/publish-release, so that the other repositories (first: tesk-api v1.2.0) share one implementation:

  • inputs: the tag, the path of the curated notes, the pre-release policy (auto: pre-release below 1.0.0 or for a/b/rc versions), an optional previous tag (default: detected from the published releases, else from the tags);
  • a check-only mode for the prepare job, so that the notes are checked before anything is published;
  • generates GitHub's notes (releases/generate-notes), merges them with the curated notes, and creates the release with gh release create --verify-tag;
  • fails clearly if a release (or a draft) of the tag exists already; needs nothing but the job's GITHUB_TOKEN with contents: write;
  • tests, a README, and an entry in the repository's README.

Activity

  1. added
    priority: high
    status: in progress
    type: ci / cd
    workload: hours
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: in progresstype: ci / cdworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions