Skip to content

Gate crates.io publish job to version tags only - #9

Merged
vimlinuz merged 2 commits into
mainfrom
copilot/fix-publish-job
Jun 8, 2026
Merged

Gate crates.io publish job to version tags only#9
vimlinuz merged 2 commits into
mainfrom
copilot/fix-publish-job

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The publish GitHub Actions job was failing on regular main pushes because it attempted cargo publish outside an explicit release flow. This change scopes publishing to version-tag pushes (v*) while keeping the existing build/test workflow behavior.

  • Workflow trigger scope

    • Added tag-based push trigger to the Rust workflow:
      • push.tags: ["v*"]
  • Publish job gating

    • Updated publish job condition from refs/heads/main to refs/tags/v*.
    • Result: publish is attempted only for release tags, not every push to main.
on:
  push:
    branches: ["main"]
    tags: ["v*"]

jobs:
  publish:
    if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

Copilot AI changed the title [WIP] Fix failing GitHub Actions job publish Gate crates.io publish job to version tags only Jun 8, 2026
Copilot AI requested a review from vimlinuz June 8, 2026 19:28

@vimlinuz vimlinuz left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Doesn't actually resolves the issues though good catch

@vimlinuz
vimlinuz marked this pull request as ready for review June 8, 2026 19:35
@vimlinuz
vimlinuz merged commit 66bfd47 into main Jun 8, 2026
2 checks passed
@vimlinuz
vimlinuz deleted the copilot/fix-publish-job branch June 8, 2026 19:38
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