Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
f7ff4103
Verified
Commit
f7ff4103
authored
3 years ago
by
Tobias Frisch
Browse files
Options
Downloads
Patches
Plain Diff
Added script to automate releases
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
parent
19acf99b
No related branches found
No related tags found
No related merge requests found
Pipeline
#28060
canceled
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/release.sh
+27
-0
27 additions, 0 deletions
scripts/release.sh
with
27 additions
and
0 deletions
scripts/release.sh
0 → 100755
+
27
−
0
View file @
f7ff4103
#!/bin/sh
VKCV_BRANCH
=
"
$(
git status |
awk
'NR == 1 { print $3 }'
)
"
if
[
"
$VKCV_BRANCH
"
!=
"develop"
]
;
then
echo
"WARNING: Please switch to origin/develop branch for preparing the next release!"
exit
fi
VKCV_VERSION
=
"
$(
cat
include/vkcv/Core.hpp |
grep
"#define VKCV_FRAMEWORK_VERSION"
|
awk
'NR == 1 { $1=""; $2=""; print }'
|
sed
-e
's/[^0-9 ]//g'
--
|
awk
'{print $1"."$2"."$3}'
)
"
if
[
$(
git tag |
grep
"
$VKCV_VERSION
"
|
wc
-l
)
-gt
0
]
;
then
echo
"WARNING: Please adjust the version of the framework before uploading a release! (Duplicate version:
$VKCV_VERSION
)"
exit
fi
vim CHANGELOG.md
git add CHANGELOG.md
git commit
-S
-s
-m
"========== VkCV-
$VKCV_VERSION
=========="
git push
git checkout master
git merge develop
git tag
-a
"
$VKCV_VERSION
"
-m
"VkCV-
$VKCV_VERSION
release"
git push
git push
--tags
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