mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
Update .gitlab-ci.yml
Run build jobs for commits pushed to master, use the tag body message, remove job tags.
This commit is contained in:
parent
e08b0f0919
commit
991a686cbb
@ -25,8 +25,6 @@ build:
|
||||
stage: build
|
||||
before_script:
|
||||
- sbt -v sbtVersion
|
||||
tags:
|
||||
- public
|
||||
script:
|
||||
- sbt assembly
|
||||
artifacts:
|
||||
@ -46,9 +44,7 @@ pages:
|
||||
stage: deploy
|
||||
before_script: []
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "develop"
|
||||
tags:
|
||||
- public
|
||||
- if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "develop"
|
||||
script:
|
||||
- rm -rf public
|
||||
- mkdir public
|
||||
@ -69,5 +65,5 @@ release:
|
||||
release-cli create \
|
||||
--name "Release $CI_COMMIT_TAG" \
|
||||
--tag-name "$CI_COMMIT_TAG" \
|
||||
--description "$CI_COMMIT_TAG_MESSAGE" \
|
||||
--description "$(git tag -l "${CI_COMMIT_TAG}" --format="%(contents:body)")" \
|
||||
--assets-link "{\"name\":\"${PACKAGE_NAME}\",\"link_type\":\"package\",\"url\":\"${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}\"}"
|
||||
Loading…
x
Reference in New Issue
Block a user