Skip to content

Conversation

@cdecker
Copy link
Collaborator

@cdecker cdecker commented Oct 7, 2025

Summary

  • Added workflow_dispatch trigger to the release workflow, allowing manual testing without publishing
  • Modified tag parsing to support both tag-triggered releases and manual dry-run mode
  • Added conditionals to skip cargo publish and GitHub release creation during dry-runs
  • Added a summary step at the end of dry-runs showing what checks passed and how to publish for real

Changes

The workflow now supports two modes:

Tag-triggered mode (existing behavior):

  • Push a tag like mycrate-v1.2.3
  • All validation checks run
  • Publishes to crates.io and creates GitHub release

Manual dry-run mode (new):

  • Navigate to Actions → Publish Crate → Run workflow
  • Enter crate name and version
  • All validation checks run (version match, changelog format, changelog entry, semver, tests)
  • Skips cargo publish and GitHub release creation
  • Shows summary with instructions to create the actual tag

Test plan

  • Verify workflow file syntax is valid
  • Test manual dry-run trigger from GitHub Actions UI
  • Verify dry-run skips publish steps
  • Verify tag-triggered mode still works as before

🤖 Generated with Claude Code

@cdecker cdecker force-pushed the 202510-ci-publish branch from 7c75e0f to 3645a0e Compare October 7, 2025 10:18
The env block needs to be at the step level, not the steps array level.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@cdecker cdecker merged commit 1da40e6 into main Oct 7, 2025
11 checks passed
@cdecker cdecker deleted the 202510-ci-publish branch October 7, 2025 14:00
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