Decouple GitHub-release assembly from per-target builds#728
Open
ptr727 wants to merge 2 commits into
Open
Conversation
Mirror ProjectTemplate #108/#109: collect release assets by the release-asset-<branch>-* artifact convention instead of referencing the build-executable job by artifact-id, so github-release stays target- agnostic. Rename the executable release artifact and drop its now-unused artifact-id outputs. Fixes #727
There was a problem hiding this comment.
Pull request overview
This PR updates the release workflow to decouple GitHub Release asset collection from specific build jobs, aligning PlexCleaner’s workflows with the upstream ProjectTemplate convention. Instead of downloading artifacts via per-job artifact-id outputs, the release job now downloads all artifacts that match the release-asset-<branch>-* naming pattern.
Changes:
- Switch
build-release-task.ymlGitHub Release asset download topattern: release-asset-${{ inputs.branch }}-*withmerge-multiple: true. - Rename the executable release artifact in
build-executable-task.ymltorelease-asset-${{ inputs.branch }}-executable. - Remove now-unused
artifact-idworkflow outputs frombuild-executable-task.yml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/build-release-task.yml | Updates GitHub Release job to download release assets by pattern (release-asset-<branch>-*) instead of referencing a specific build job’s artifact output. |
| .github/workflows/build-executable-task.yml | Renames the uploaded executable release artifact to the new release-asset-<branch>-executable convention and drops the unused artifact-id outputs. |
PlexCleaner pins fail_on_unmatched_files: true over ./Publish/*, so an empty ./Publish fails the release step — the prior comment's 'file-less release still works' claim (copied from the template, which leaves the flag default-false) was inaccurate here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-converge with the template change in ptr727/ProjectTemplate#108 (shipped in ProjectTemplate#109).
What
github-releasecollected the release file by referencingbuild-executableby itsartifact-idoutput. This switches to the template'srelease-asset-<branch>-*artifact convention: the executable leaf task uploadsrelease-asset-<branch>-executable, andgithub-releasecollects assets by pattern (release-asset-<branch>-*,merge-multiple) instead of naming a build job.Why
Keeps the release orchestration identical to upstream so it stays in sync, and decouples it from the specific build targets. No behavior change — the same executable
.7zlands on the GitHub release.Changes
build-executable-task.yml: rename the release artifact torelease-asset-<branch>-executable; drop the now-unusedartifact-idoutputs.build-release-task.yml:github-releasecollects assets via pattern download.actionlint (Docker) is clean on the changed files.
Fixes #727