Updating version doesn't create tags

I’m trying to set up an automated release process for my website, and using a GitHub action to semantic versioning. I expected that it would create tags in the process, but that’s not happening, despite the action reporting that it had updated the version number.

I still don’t completely understand how tags are separate from releases and when I should have a version number vs a tag vs a release, but I’d just like to get this working so when I push a change I get a new version number and a tag, and when I push a Minor or Major change, I get a release.

The relevant code is:

Run paulhatch/semantic-version@v3.2
2
  with:
3
    branch: main
4
    tag_prefix: v
5
    major_pattern: (MAJOR)
6
    minor_pattern: (MINOR)
7
    format: ${major}.${minor}.${patch}-prerelease.${increment}
8
    short_tags: true
9
    bump_each_commit: false
10
v2.0
11
Version is 2.1.0+1
12
To create a release for this version, go to https://github.com/datapolitical/chrisfnicholson.github.io/releases/new?tag=v2.1&target=main

Thanks for your help!

Tags are a git concept. Essentially they are labels pointing at a specific commit, optionally with a message and signature. For details, see:

Releases are a Github concept build around tags (which is why you can’t have a release without a tag), essentially attaching additional metadata and possibly binaries.

I don’t see anything in the paulhatch/semantic-version Readme about the action creating a release or even tag, so I assume it’s not intended to. Note that if you create a tag in an Actions workflow you’ll still need to push it to your repository to keep it persistently.