2022-06-16 17:43:06 +00:00
|
|
|
# yamllint disable rule:line-length
|
|
|
|
---
|
2022-06-16 17:33:57 +00:00
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_TAG
|
2022-06-16 19:37:50 +00:00
|
|
|
needs:
|
|
|
|
- job: win-prod-build
|
|
|
|
artifacts: true
|
2022-06-16 17:33:57 +00:00
|
|
|
script:
|
2022-06-16 19:37:50 +00:00
|
|
|
- echo "Build Job $JOB_ID"
|
2022-06-16 17:33:57 +00:00
|
|
|
- echo "Running release job for tag $CI_COMMIT_TAG"
|
2022-08-11 20:02:27 +00:00
|
|
|
- |
|
|
|
|
full_changelog=$(cat CHANGELOG.md)
|
|
|
|
trimmed_changelog="${full_changelog%%<br><br>*}"
|
|
|
|
echo "$trimmed_changelog"
|
|
|
|
- release-cli create
|
|
|
|
--name "Crafty $CI_COMMIT_TAG"
|
|
|
|
--description "$trimmed_changelog"
|
|
|
|
--tag-name "$CI_COMMIT_TAG"
|
|
|
|
--ref "$CI_COMMIT_TAG"
|
|
|
|
--assets-link "{\"url\":\"$CI_PROJECT_URL/-/jobs/$JOB_ID/artifacts/download\",\"name\":\"Windows Package\",\"link_type\":\"package\"}"
|
|
|
|
# Having to use raw release-cli instead of yaml syntax because variables are not expanding
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/237893#note_403465700
|