Skip to content

Split release into package and publish jobs - #749

Merged
bgentry merged 1 commit into
masterfrom
bg/release-build-publish-jobs
Nov 24, 2026
Merged

bgentry merged 1 commit into
masterfrom
bg/release-build-publish-jobs

Conversation

@bgentry

@bgentry bgentry commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🤖 The release workflow builds a module and copies it to storage in a single job. This splits that job in two:

  • Package builds the frontend and the module files exactly as before, then uploads them as a workflow artifact.
  • Publish downloads the artifact and copies it to storage.

The publish job takes the module path and version from the workflow's inputs, and copies exactly that version's .info, .mod, and .zip files plus the version list, rather than everything in the output directory. It checks that the latest version comes from that list before pointing @latest at it. Destination paths are unchanged.

Two smaller changes come with it. The publish job runs in a release environment, so its storage settings can live there. It also installs the same pinned AWS CLI version directly instead of through an action, and fails if a different version would be used.

Since a release can't be rehearsed against real storage, I ran both jobs on a test branch for each module with placeholder credentials and every copy in dry-run mode. Both jobs passed, the copies resolved to the same paths the workflow writes today, and the packaged files from the runner had the same contents and module hash as a local build of the same commit.

The release workflow builds a module and copies it to storage in one
job. Split it in two. The package job builds the frontend and the
module files as before, then uploads them as a workflow artifact. The
publish job downloads the artifact and copies it to storage.

The publish job takes the module path and version from the workflow's
inputs and copies exactly that version's `.info`, `.mod`, and `.zip`
files and the version list, rather than everything in the output
directory. It checks that the latest version is a version from that
list before pointing `@latest` at it.

The publish job runs in a `release` environment, so its storage
settings can live there. It installs the same pinned AWS CLI version
directly instead of through an action, and fails if a different
version would be used.
@bgentry
bgentry requested a review from brandur November 24, 2026 02:14
@bgentry
bgentry merged commit 2fd1749 into master Nov 24, 2026
23 checks passed
@bgentry
bgentry deleted the bg/release-build-publish-jobs branch November 24, 2026 02:17
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