I'm in the process of migrating my projects from GitHub.com to a self-hosted GitLab CE instance. I had previously set up a GitHub Actions pipeline to publish the application when a new release was cut from a tag. That is, when I went to github.com/<organization>/<project>/tags
and edited a tag to publish a release, the following *-workflow.yml
script snippet would trigger my desired action:
on:
release:
types: [created]
What is the equivalent of that on GitLab CI/CD (.gitlab-ci.yml
)? I searched all over the GitLab docs and auxiliary websites like gitlab.reddit.com and Stack Overflow, but couldn't find any way to do that. To be clear, the steps for converting a tag into a bona-fide release in GitLab are as follows:
- Go to
<GitLab CE>/<group>/<project>/-/releases/new
- "Create from" any tag in the list
- Fill out the details
- Click on the "Create release" button
I'd like GitLab to execute my script
immediately upon step 4 above.