include: Add missing SQL prototype.
[wine.git] / tools / gitlab / release.yml
blobb7af1daa86a37acf33cc1bfe68cb01fc2b8421da
1 # CI script for creating releases
3 create-release:
4   stage: deploy
5   image: registry.gitlab.com/gitlab-org/release-cli:latest
6   rules:
7     - if: $CI_COMMIT_TAG && $CI_PROJECT_PATH == "wine/wine"
8   script:
9     - VERSION=$(expr "$CI_COMMIT_TAG" ":" 'wine-\(.*\)')
10     - URL=$(grep -o "https://dl.winehq.org/.*" ANNOUNCE)
11     - FILEPATH=$(expr "$URL" ":" '.*\(/.*\)')
12     - |
13       sed -e '/^The source/,/^----------/d
14       /^----------/,$d
15       /^Bugs fixed/i--------
16       s/^\*\*\*/###/' ANNOUNCE >announce.md
17     - release-cli create
18         --name "Wine $VERSION"
19         --tag-name "$CI_COMMIT_TAG"
20         --description announce.md
21         --assets-link "{\"name\":\"Source code\",\"url\":\"$URL\",\"link_type\":\"other\",\"filepath\":\"$FILEPATH\"}"