Skip to content
Snippets Groups Projects

ci: Add script to create the gitlab release.

Merged Alexandre Julliard requested to merge julliard/vkd3d:ci into master
1 unresolved thread

Copied from the corresponding Wine script.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
  • 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".

  • Alexandre Julliard added 417 commits

    added 417 commits

    Compare with previous version

  • Henri Verbeet approved this merge request

    approved this merge request

  • added 1 commit

    • 8d83b2ea - ci: Add script to create the gitlab release.

    Compare with previous version

  • Alexandre Julliard approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading