Skip to content

Add GHA workflow to publish releases; stale file cleanup#290

Merged
jonyoder merged 1 commit into
mainfrom
add-release-workflow
Jul 20, 2026
Merged

Add GHA workflow to publish releases; stale file cleanup#290
jonyoder merged 1 commit into
mainfrom
add-release-workflow

Conversation

@glin

@glin glin commented Jul 18, 2026

Copy link
Copy Markdown
Member

Currently, platform-lib releases are done by manual tagging + creating a GH release. This adds a GHA workflow to automatically tag + release given a version.

Also cleans up some old release files that are no longer used.

Release workflow

.github/workflows/release.yml publishes a GitHub Release with a generated changelog, two ways:

  • Run it with a version string: gh workflow run release.yml -f version=v4.3.1 (validates the version, refuses duplicates, requires main, then tags and releases from CI, no local git)
  • Or push a semver tag: git tag v4.3.1 && git push origin v4.3.1

Cleanup

The repo has been one module (github.com/rstudio/platform-lib/v4) since v4, so:

  • Deleted the chart/tags scripts (latest-tags.sh, generate-chart-data.sh, generate-chart.sh), their justfile targets, and the .chart entries.
  • Rewrote the README Release + Testing sections and the pkg READMEs; fixed test examples pointing at packages and import paths that no longer exist.

Testing

Hard to test but after merge, I'll try publishing a release, then delete the release/tag (unless we have legit changes to include, possibly some dependency bumps)

Add a GitHub Actions release workflow: push a semver tag, or run it with
`-f version=vX.Y.Z` to validate the version, create and push the tag, and
publish the release from CI. Both paths generate the changelog with
`gh release create --generate-notes`, so the manual step is gone.

The repo has been a single Go module (github.com/rstudio/platform-lib/v4)
since v4, so remove the tooling and docs that assumed per-module go.mod files
and per-module tags:

- Delete the chart/tags scripts (latest-tags.sh, generate-chart-data.sh,
  generate-chart.sh), their justfile targets, and the .chart ignore/clean
  entries. The chart graphed dependencies between modules that no longer
  exist under a single module.
- Rewrite the top-level release and testing sections and the pkg READMEs for
  the single module, and fix test examples that pointed at packages and
  import paths that no longer exist.
@glin glin changed the title Automate releases and remove pre-v4 multi-module remnants Add GHA workflow to publish releases; stale file cleanup Jul 20, 2026

@jonyoder jonyoder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this added!

@jonyoder
jonyoder merged commit 2c312cb into main Jul 20, 2026
3 checks passed
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.

3 participants