vkd3d/gitlab/release.yml
Alexandre Julliard 8d83b2eaec ci: Add script to create the gitlab release.
Copied from the corresponding Wine script.
2023-12-06 15:31:12 +01:00

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\"}"