Skip to content

ci: Add promote.yml workflow for release-candidate promotion - #338

Merged
scouten-adobe merged 1 commit into
mainfrom
add-promote-workflow
Sep 22, 2026
Merged

scouten-adobe merged 1 commit into
mainfrom
add-promote-workflow

Conversation

@scouten-adobe

Copy link
Copy Markdown
Collaborator

Ports c2pa-rs's promote.yml workflow to this repo, as the manual final step of a breaking train's bake (see docs/release-process.md).

Adaptations for c2patool (single-project repo, not a workspace):

  • Drops the multi-package meta() version-selector helper; reads the version directly via packages[0].version, matching this repo's other release workflows (release-rc.yml, release-train-cut.yml).
  • The version-reset step now replaces only the first version = "..." line in Cargo.toml (the [package] version), rather than a global string replace -- c2patool's Cargo.toml also contains c2pa = { version = "...", ... } dependency entries that must be left untouched (unlike c2pa-rs, where two occurrences were deliberately kept in sync).
  • Variable/comment naming updated to c2patool terminology; tag-namespace note updated to c2patool-v*.

This workflow does not publish -- it resets the candidate's version and force-pushes onto stable, letting release-pr.yml open the reviewed version + changelog PR.

Co-authored-by: Copilot App [email protected]

Ports c2pa-rs's promote.yml workflow to this single-project repo. Adapted
for c2patool's non-workspace Cargo.toml: the version reset now targets
only the first `version = "..."` line (the package version) instead of
a global string replace, so it never touches the `c2pa` dependency's own
`version = "..."` entries.

Co-authored-by: Copilot App <[email protected]>
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.16%. Comparing base (e786f47) to head (11333eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #338   +/-   ##
=======================================
  Coverage   72.16%   72.16%           
=======================================
  Files           4        4           
  Lines        1060     1060           
=======================================
  Hits          765      765           
  Misses        295      295           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scouten-adobe
scouten-adobe merged commit ebf3720 into main Sep 22, 2026
17 checks passed
@scouten-adobe
scouten-adobe deleted the add-promote-workflow branch September 22, 2026 03:47
scouten-adobe added a commit that referenced this pull request Sep 22, 2026
…346)

Ports c2pa-rs's promote.yml workflow to this single-project repo. Adapted
for c2patool's non-workspace Cargo.toml: the version reset now targets
only the first `version = "..."` line (the package version) instead of
a global string replace, so it never touches the `c2pa` dependency's own
`version = "..."` entries.

Co-authored-by: Copilot App <[email protected]>
This was referenced Sep 22, 2026
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