go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
395 stars 43 forks source link

Manual tag creation to trigger release #160

Open neilfarmer opened 11 months ago

neilfarmer commented 11 months ago

Hi!

Thanks for the tool, its really awesome!

I do have a question tho, Is there a way to trigger manual releases via pushing a tag?

I want to create a tag v1.2.3 and when that tag is created, it will push the release.

Im using the gitlab plugin with the following config:

{
  "plugins": {
    "commit-analyzer": {
      "name": "default"
    },
    "ci-condition": {
      "name": "default"
    },
    "changelog-generator": {
      "name": "default",
      "options": {
        "emojis": "true"
      }
    },
    "provider": {
      "name": "gitlab",
      "options": {
        "gitlab_projectid": "xxx"
      }
    },
    "hooks": {
      "names": [
        "exec"
      ],
      "options": {
        "exec_on_success": "echo something",
        "exec_on_no_release": "echo nothing"
      }
    }
  }
}

I checked all the CLI flags and used the --match and --maintained-version but nothing seemed to have worked.

Any info would be greatly appreciated!

Thanks again!

-Neil

christophwitzko commented 11 months ago

Hey @neilfarmer, thank you ☺️

The idea behind the tool is to automate software versioning. Therefore, tags should not be created manually. I am curious to hear a bit more about your use case and where you want to use semantic-release in combination with manual tagging.

Best, Chris