Skip to content

Release: also attach the jar as labconstrictor-qupath.jar - #58

Merged
IvanHCenalmor merged 2 commits into
mainfrom
ci/release-fixed-name-jar
Nov 17, 2026
Merged

IvanHCenalmor merged 2 commits into
mainfrom
ci/release-fixed-name-jar

Conversation

@IvanHCenalmor

Copy link
Copy Markdown
Contributor

The release now also attaches the jar under a fixed name, labconstrictor-qupath.jar, next to the versioned labconstrictor-qupath-<tag>.jar. Then https://github.com/CellMigrationLab/LabConstrictor-QuPath/releases/latest/download/labconstrictor-qupath.jar always gives the newest release.

The QuPath guide can switch to the "latest" link only after the next release includes this file. Today no release has it, so that address returns 404. When to release is Guillaume's decision.

Changes (.github/workflows/release.yml only)

  • build job ("Collect the release files and the notes"):
    • Copies the jar to release-files/labconstrictor-qupath.jar.
    • Lists it in SHA256SUMS.
    • Checks with cmp that it is byte-identical to the versioned jar.
  • publish job: uploads labconstrictor-qupath.jar with the other files.
  • The versioned asset is unchanged: same name, same bytes, still uploaded.
  • os-smoke is unchanged. Its glob labconstrictor-qupath-*.jar needs a dash after qupath, so it still finds only the versioned jar.
  • Release notes text appended by the workflow:
  • Header comment updated.

Tested locally

  • The workflow file parses as YAML.
  • The changed "Collect" step, extracted from the workflow and run with bash on a stand-in jar (tag v9.9.9-test):
    • Both jars are written and are identical.
    • sha256sum -c SHA256SUMS passes for all three files.
    • The release-notes text reads as intended.
    • The os-smoke glob matches only the versioned jar.

Not verified

  • The publish job (gh release upload with the extra file): it runs only on a published release, so nothing here could exercise it.
  • That the "latest" address serves the file: only after the next release.
  • This PR touches release.yml, so CI runs the release workflow as a dry run (build, Linux smoke test, artifact, no publish). The release-files artifact of that run should contain labconstrictor-qupath.jar.

Follow-up after this merges

🤖 Generated with Claude Code

The release now attaches the same jar a second time under a fixed name, so
https://github.com/CellMigrationLab/LabConstrictor-QuPath/releases/latest/download/labconstrictor-qupath.jar
always gives the newest release. The versioned jar is unchanged.

- The build job copies the jar to release-files/labconstrictor-qupath.jar,
  lists it in SHA256SUMS and checks that both files are byte-identical.
  The os-smoke glob labconstrictor-qupath-*.jar still finds only the
  versioned jar.
- The publish job uploads it with the other files.
- The release notes link to the QuPath guide instead of copying the install
  steps and the menu path, name the fixed-name file, and say that the
  extension has been tested on Linux, Windows and macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ixed-name jar change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IvanHCenalmor
IvanHCenalmor merged commit 2371ee0 into main Nov 17, 2026
6 checks passed
@IvanHCenalmor
IvanHCenalmor deleted the ci/release-fixed-name-jar branch November 17, 2026 00:36
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