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:
Fingercomp 2023-06-14 22:08:28 +07:00
parent e08b0f0919
commit 991a686cbb
No known key found for this signature in database
GPG Key ID: BBC71CEE45D86E37

View File

@ -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}\"}"