Skip to content

Fix release workflow tag handling and bump crate to 0.3.1#12

Merged
elasticdotventures merged 1 commit intomainfrom
fix/release-sync-crate-version
Feb 8, 2026
Merged

Fix release workflow tag handling and bump crate to 0.3.1#12
elasticdotventures merged 1 commit intomainfrom
fix/release-sync-crate-version

Conversation

@elasticdotventures
Copy link
Member

Summary

  • fix GHCR push failure by lowercasing the image repository name
  • drive release tagging from Cargo.toml version and validate pushed tag matches crate version
  • keep container tags aligned by pushing vX.Y.Z, X.Y.Z, and latest
  • bump crate version to 0.3.1 and sync server.json
  • update version bump hook to include server.json in automated bumps

Validation

  • cargo check --locked

Context

Fixes failing Actions run/job: https://github.com/PromptExecution/rust-cargo-docs-rag-mcp/actions/runs/21807304139/job/62912761753

Copilot AI review requested due to automatic review settings February 8, 2026 23:38
@elasticdotventures elasticdotventures merged commit 08db22e into main Feb 8, 2026
6 checks passed
@elasticdotventures elasticdotventures deleted the fix/release-sync-crate-version branch February 8, 2026 23:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the project’s release/publish automation by deriving release tags from the crate version, ensuring GHCR image names are lowercased, and bumping the crate to 0.3.1 while keeping auxiliary metadata in sync.

Changes:

  • Bump crate version to 0.3.1 and update related metadata (Cargo.lock, server.json, README).
  • Update release workflow to compute tags from Cargo.toml version, validate pushed tag matches, and publish multiple container tags (vX.Y.Z, X.Y.Z, latest).
  • Extend the version bump hook to also update and stage server.json.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
server.json Sync server metadata version + OCI identifier tag to 0.3.1.
scripts/set-version.sh Update server.json version and OCI tag during automated version bumps.
cog.toml Stage server.json in post-bump git add hook.
README.md Update example Docker pull tag to v0.3.1.
Cargo.toml Bump crate version to 0.3.1.
Cargo.lock Sync lockfile entry version to 0.3.1.
.github/workflows/release-and-publish.yml Lowercase GHCR repo name, derive release tag from Cargo.toml, validate tag/version alignment, and push aligned image tags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 72 to +77
- name: Create GitHub release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.ref_name }}
tag_name: ${{ steps.version.outputs.release_tag }}
target_commitish: ${{ github.sha }}
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

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

Now that the workflow derives release_tag (and can run via workflow_dispatch), the later asset-upload steps should explicitly target the same tag. Currently those steps use softprops/action-gh-release without tag_name, which defaults to github.ref and can attach assets to the wrong release (or fail) when not running on a tag ref. Consider passing tag_name: ${{ steps.version.outputs.release_tag }} to the upload steps (or using the create_release step outputs) to keep all release operations aligned.

Copilot uses AI. Check for mistakes.
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.

2 participants