ci: Add script to create the gitlab release.
1 unresolved thread
1 unresolved thread
Copied from the corresponding Wine script.
Merge request reports
Activity
- gitlab/release.yml 0 → 100644
1 # CI script for creating releases 2 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/vkd3d" 8 script: 9 - VERSION=$(expr "$CI_COMMIT_TAG" ":" 'vkd3d-\(.*\)') 10 - URL=$(grep -o "https://dl.winehq.org/.*" ANNOUNCE) 11 - FILEPATH=$(expr "$URL" ":" '.*\(/.*\)') 12 - | 13 sed -e '/^The source/,/^----------/d 14 /^----------/,$d 15 s/^\*\*\*/###/' ANNOUNCE >announce.md - Comment on lines +13 to +15
changed this line in version 2 of the diff
One improvement, though: apparently the syntax
`word'
is used for what in Markdown is`word`
.Well, not quite, it's supposed to be more like ‘word’.
If we're willing to use pandoc, the following produces something that I think is fairly reasonable:
sed ' /^[=-]\+$/d s/`/'\''/g /^The source is available/i#+BEGIN_COMMENT /^Vkd3d is available thanks to/i#+END_COMMENT s/^What'\''s new in vkd3d/* &/g ' ANNOUNCE \ | pandoc -f org -t commonmark \ <(printf "#+OPTIONS: ^:{}\n#+OPTIONS: ':t\n#+OPTIONS: -:nil\n") - \ >announce.md
In principle it could produce HTML for the proper website as well, with "-t html".
added 417 commits
-
472c36bd...803dfc12 - 416 commits from branch
wine:master
- b9014439 - ci: Add script to create the gitlab release.
-
472c36bd...803dfc12 - 416 commits from branch
added 1 commit
- 8d83b2ea - ci: Add script to create the gitlab release.
Please register or sign in to reply