Skip to content

Instantly share code, notes, and snippets.

@bluwy
Created January 24, 2021 05:25
Show Gist options
  • Save bluwy/6ca34643cf3071ca4c8d01f164d1d74c to your computer and use it in GitHub Desktop.
Save bluwy/6ca34643cf3071ca4c8d01f164d1d74c to your computer and use it in GitHub Desktop.
GitHub Actions publish flow

Assuming

  1. Latest version is v1
  2. Real underlying version is v1.0.0
  3. A new release is to be published at v1.0.1 and v1

Steps

  1. Push commits
  2. Create new release for v1.0.1
  3. In local repo, update the v1 tag:
# Remove v1 tag
$ git tag -d v1

# Add new v1 tag
$ git tag v1 <commit-sha>

# Push changes
$ git push -f --tags

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment