镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Only publish to Central from v* tags #118

Closed

Description

@yawkat

build-all-and-publish.yml publishes on release: published, or on workflow_dispatch with publish=true (conditions at ~216 and ~285). A dispatch from a branch deploys X.Y.Z-SNAPSHOT. From a detached commit, the maven-git-versioning extension produces a commit-hash version, and releases on Central can never be removed.

Guard both publish conditions, and their negated counterparts:

if: github.event_name == 'release' || (inputs.publish && startsWith(github.ref, 'refs/tags/v'))

Release events have github.ref = refs/tags/v…, so the normal release flow is unchanged.

Activity

  1. self-assigned this
    on Sep 25, 2026
  2. added a commit that references this issue on Sep 25, 2026
    68d4bfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions