Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
b44a7d06
Commit
b44a7d06
authored
4 years ago
by
Arkerthan
Browse files
Options
Downloads
Patches
Plain Diff
Read changelog from CHANGELOG.md and insert into new releases
parent
d9a402a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9046
Read changelog from CHANGELOG.md and insert into new releases
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-2
12 additions, 2 deletions
.gitlab-ci.yml
with
12 additions
and
2 deletions
.gitlab-ci.yml
+
12
−
2
View file @
b44a7d06
...
...
@@ -41,7 +41,17 @@ release:
# only for official releases
-
if
:
$CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
script
:
# extract changes from changelog
# get line of version header + 1
-
START=$(awk 'match($1,"##") && match($2,v){print NR+1; exit}' v="0.10.7.1-$CI_COMMIT_TAG" CHANGELOG.md)
# drop everything above the release including the release header
-
tail -n +$START CHANGELOG.md > tmp
# get line of next version header - 1
-
END=$(awk 'match($1,"##") && match($2,v){print NR-1; exit}' v="0.10.7.1" tmp)
# drop everything after current release
-
DESCRIPTION=$(head -n $END tmp)
# create release
-
|
release-cli create --name $CI_COMMIT_TAG --description "
Download ${FC_PREGMOD_HTML} to play the game.
" \
--tag-name $CI_COMMIT_TAG \
release-cli create --name
"
$CI_COMMIT_TAG
"
--description "
$DESCRIPTION
" \
--tag-name
"
$CI_COMMIT_TAG
"
\
--assets-link "{\"name\":\"${FC_PREGMOD_HTML}\",\"url\":\"${MEGA_URL}\"}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment