Skip to content
Snippets Groups Projects
Commit 7e594d3d authored by Tobias Hangleiter's avatar Tobias Hangleiter
Browse files

Merge branch 'ci/publish' into 'main'

Only automatically publish if tagged commits are on main

See merge request !32
parents 650c1830 180d1b00
No related branches found
No related tags found
1 merge request!32Only automatically publish if tagged commits are on main
Pipeline #1393332 waiting for manual action
......@@ -53,8 +53,8 @@ pypi:
script:
- python -m hatch publish -y
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d{4}\.\d{1,2}\.\d{1,2}$/'
# Always publish tagged commits matching CalVer
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && '$CI_COMMIT_TAG =~ /^v\d{4}\.\d{1,2}\.\d{1,2}$/'
# Always publish tagged commits to main and matching CalVer
when: on_success
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Allow manually pushing to pypi
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment