CI\CD Tagging

Hi Guys,

I am trying to create a simple pipeline which will do the following two things -

  • generate API docs from code (command already available)
  • Create a Tag of the commit

Please can you guys help me how i can create a git tag via pipeline.
Also please suggest what’s the best way to deploy API docs? does it make sense to have them in wiki or is there any other better alternative with in GitLab