mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
17 lines
651 B
YAML
17 lines
651 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-\(.*\)')
|
|
- test -n "$VERSION" || exit 1
|
|
- URL=$(grep -o "https://dl.winehq.org/[^>]*" ANNOUNCE.md)
|
|
- FILEPATH=$(expr "$URL" ":" '.*\(/.*\)')
|
|
- release-cli create
|
|
--name "Wine $VERSION"
|
|
--tag-name "$CI_COMMIT_TAG"
|
|
--description ANNOUNCE.md
|
|
--assets-link "{\"name\":\"Source code\",\"url\":\"$URL\",\"link_type\":\"other\",\"filepath\":\"$FILEPATH\"}"
|