Add publishing only on master tags
Additional steps in project settings:
-
Go to Settings → CI/CD → Environment variables and add the Open Store API key as a protected env var named OPENSTORE_API_KEY
(Get it from the Open Store Website) -
Go to Settings → Repository → Protected Tags and add a wildcard for v*
Only tags on master branch will trigger the publishing. Only tags matching the wildcard (starting with a v
) will have access to the API key, so for other tags our CI will simply fail.
Edited by Jonatan Hatakeyama Zeidler