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