From a Semantic Version, create a Go module tag.
This repository is a GitHub Workflow that makes a tag in the format "vM.m.P", which is a Semantic Version prefixed with "v", whenever a semantically versioned tag is created.
Note: As itself, "v0.0.0" is not a semantic version. See Is “v1.2.3” a semantic version?
-
To use, create a
.github/workflows/make-go-tag.yamlfile with the following contents:name: make-go-tag.yaml on: push: tags: - "[0-9]+.[0-9]+.[0-9]+" permissions: contents: write jobs: build: name: Make a vM.m.P tag runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v5 with: persist-credentials: false - name: Make go version tag uses: senzing-factory/github-action-make-go-tag@v2 with: actor: ${{ secrets.GITHUB_ACTOR }} github_token: ${{ secrets.GITHUB_TOKEN }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
- GitHub workflow