1 # CI script for creating releases
5 image: registry.gitlab.com/gitlab-org/release-cli:latest
7 - if: $CI_COMMIT_TAG && $CI_PROJECT_PATH == "wine/wine"
9 - VERSION=$(expr "$CI_COMMIT_TAG" ":" 'wine-\(.*\)')
10 - URL=$(grep -o "https://dl.winehq.org/.*" ANNOUNCE)
11 - FILEPATH=$(expr "$URL" ":" '.*\(/.*\)')
13 sed -e '/^The source/,/^----------/d
15 /^Bugs fixed/i--------
16 s/^\*\*\*/###/' ANNOUNCE >announce.md
18 --name "Wine $VERSION"
19 --tag-name "$CI_COMMIT_TAG"
20 --description announce.md
21 --assets-link "{\"name\":\"Source code\",\"url\":\"$URL\",\"link_type\":\"other\",\"filepath\":\"$FILEPATH\"}"