mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 14:24:26 +00:00
23 lines
802 B
YAML
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\"}"
|