wine/tools/gitlab/release.yml
Alexandre Julliard a1af412482 Release 7.15.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-08-13 21:23:11 +02:00

23 lines
802 B
YAML

# CI script for creating releases
create-release:
stage: deploy
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG && $CI_PROJECT_PATH == "wine/wine"
script:
- VERSION=$(expr "$CI_COMMIT_TAG" ":" 'wine-\(.*\)')
- URL=$(grep -o "https://dl.winehq.org/.*" ANNOUNCE)
- FILEPATH=$(expr "$URL" ":" '.*\(/.*\)')
- |
sed -e '/^The source/,/^----------/d
/^----------/,$d
/^Bugs fixed/i--------
s/^\*\*\*/###/' ANNOUNCE >announce.md
- release-cli create
--name "Wine $VERSION"
--tag-name "$CI_COMMIT_TAG"
--released-at "$CI_COMMIT_TIMESTAMP"
--description announce.md
--assets-link "{\"name\":\"Source code\",\"url\":\"$URL\",\"link_type\":\"other\",\"filepath\":\"$FILEPATH\"}"