Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aa222ccd
Commit
aa222ccd
authored
Jul 26, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab: Add CI script to create a release.
parent
104d6a12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
.gitlab-ci.yml
.gitlab-ci.yml
+2
-0
release.yml
tools/gitlab/release.yml
+23
-0
No files found.
.gitlab-ci.yml
View file @
aa222ccd
...
...
@@ -3,7 +3,9 @@
stages
:
-
image
-
build
-
deploy
include
:
-
local
:
"
/tools/gitlab/image.yml"
-
local
:
"
/tools/gitlab/build.yml"
-
local
:
"
/tools/gitlab/release.yml"
tools/gitlab/release.yml
0 → 100644
View file @
aa222ccd
# 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/wine"
script
:
-
VERSION=$(expr "$CI_COMMIT_TAG" ":" 'wine-\(.*\)')
-
URL=$(grep -o "https://dl.winehq.org/.*" ANNOUNCE)
-
FILEPATH=$(expr "$URL" ":" '.*\(/.*\)')
-
|
sed -e '/^The source/,/^----------/d
/^----------/,$d
/^Bugs fixed/i--------
s/^ *\([0-9][0-9]*\) / - #\1/
s/^\*\*\*/###/' ANNOUNCE >announce.md
-
release-cli create
--name "Wine $VERSION"
--tag-name "$CI_COMMIT_TAG"
--released-at "$CI_COMMIT_TIMESTAMP"
--description announce.md
--assets-link "{\"name\":\"Source code\",\"url\":\"$URL\",\"link_type\":\"other\",\"filepath\":\"$FILEPATH\"}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment