Skip to content

How to split bumping and tagging to allow intermediate step in between #256

Open
@albertogomcas

Description

@albertogomcas

My use case, I have some versioned source code that can be compiled into a binary. The binary is added to a dist folder on the same repo (may be an anti-pattern...)

Steps as I have it configured now:

  1. (bump2version) Bump version of the code, commit [+ tag]
  2. build the binary, replace the old binary
  3. commit binary file
  4. push and push tags

The problem is that the binary commit happens after the tag.

What I would need:

  1. (bump2version) Bump version of the code, commit [no tag]
  2. build the binary, replace the old binary
  3. commit binary file
  4. tag with the bumped version
  5. push and push tags

I can of course script myself the new step 4, but I was wondering if I have missed some option of bump2version that allows for this, basically create the tag without bumping the version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions