Skip to content

ci(publish): publish on pre-releases + add manual dispatch#17

Open
Shivanshu-07 wants to merge 1 commit into
mainfrom
ci/publish-on-prerelease
Open

ci(publish): publish on pre-releases + add manual dispatch#17
Shivanshu-07 wants to merge 1 commit into
mainfrom
ci/publish-on-prerelease

Conversation

@Shivanshu-07

Copy link
Copy Markdown
Contributor

Publish on pre-releases + manual dispatch

.github/workflows/publish.yml only triggered on release: types: [released]. GitHub fires released only for non-pre-releases; a pre-release fires prereleased. So when v1.0.5-beta.0 was published as a pre-release, the workflow never ran and nothing reached Maven Central (io.percy:espresso-java still tops out at 1.0.3).

Change

on:
  release:
    types: [released, prereleased]   # was: [released]
  workflow_dispatch:                 # new — manual run from Actions tab
  • prereleased — beta/pre-releases now publish too, while staying correctly flagged as pre-releases on GitHub.
  • workflow_dispatch — lets us publish manually from Actions → Publish → Run workflow without (re)creating a release.

Publishing the already-cut v1.0.5-beta.0 after this merges

The version 1.0.5-beta.0 is already on main and the v1.0.5-beta.0 release/tag already exists — no version bump or new release PR needed. Because release/dispatch workflows always use the workflow file from the default branch, merge this first, then either:

  1. Actions → Publish → Run workflow on main (simplest), or
  2. delete and recreate the v1.0.5-beta.0 pre-release to re-emit prereleased.

Builds on JDK 11 + the Gradle 7.5 wrapper (compatible; unrelated to the Java-21 dependency-submission CI failure).

🤖 Generated with Claude Code

The Publish workflow only listened for release 'released' events, which
GitHub does not fire for pre-releases (it fires 'prereleased'). As a result
the v1.0.5-beta.0 pre-release did not publish to Maven Central.

- Add 'prereleased' so beta/pre-releases publish too.
- Add workflow_dispatch so a release can be published manually from the
  Actions tab without (re)creating a GitHub release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Shivanshu-07 Shivanshu-07 requested a review from a team as a code owner June 23, 2026 16:43
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.

2 participants