chore(CI): only run release tasks on the main repo.

This commit is contained in:
James Harton 2022-03-22 09:19:30 +13:00
parent 38164058af
commit cba9fa982f

View file

@ -77,7 +77,7 @@ pages:
paths: paths:
- public - public
only: only:
- main - main@jimsy/heap
git_ops: git_ops:
image: elixir:latest image: elixir:latest
@ -85,8 +85,7 @@ git_ops:
- build - build
stage: release stage: release
only: only:
refs: - main@jimsy/heap
- main
except: except:
variables: variables:
- $CI_COMMIT_MESSAGE =~ /chore\:\ release version/ - $CI_COMMIT_MESSAGE =~ /chore\:\ release version/
@ -117,7 +116,7 @@ release-gitlab:
- build - build
stage: release stage: release
only: only:
- tags - tags@jimsy/heap
- /^v\d+\.\d+\.\d+(-\w+)?$/ - /^v\d+\.\d+\.\d+(-\w+)?$/
script: script:
- release-cli create \ - release-cli create \
@ -133,7 +132,7 @@ release-hex:
- build - build
stage: release stage: release
only: only:
- tags - tags@jimsy/heap
- /^v\d+\.\d+\.\d+(-\w+)?$/ - /^v\d+\.\d+\.\d+(-\w+)?$/
script: script:
- mix hex.publish --yes - mix hex.publish --yes