Module: vkd3d Branch: master Commit: 8d83b2eaec2ad9743bfdc9a0e3dbdd6d93a26ce1 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/8d83b2eaec2ad9743bfdc9a0e3dbdd...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Sep 22 11:02:32 2023 +0200
ci: Add script to create the gitlab release.
Copied from the corresponding Wine script.
---
.gitlab-ci.yml | 2 ++ gitlab/release.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 276c654e..af8c855e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,8 +2,10 @@ stages: - image - build - test + - deploy
include: - local: "/gitlab/image.yml" - local: "/gitlab/build.yml" - local: "/gitlab/test.yml" + - local: "/gitlab/release.yml" diff --git a/gitlab/release.yml b/gitlab/release.yml new file mode 100644 index 00000000..8c9eac9f --- /dev/null +++ b/gitlab/release.yml @@ -0,0 +1,17 @@ +# 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/%5B%5E%3E%5D*" 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"}"