Adding a Release to your Gitlab CI/CD process
This snippet gives a fairly generic script that you can add to your .gitlab-ci.yml file in order to enable a release for every tagged commit. Releases can help you provide archived versions of your source tree, or of your build artifacts without requiring the end user use Git to check out your code.
This particular example will generate a very simple changelog and bundle up your current source tree. It is possible to create releases of compiled artifacts as well (which may be documented in a separate snippet).