Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kris
VuhDo
Commits
d1d8c4b5
Commit
d1d8c4b5
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Plain Diff
Merge branch 'master' into classic
parents
1da722d4
ff9b2d80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
.release/release.sh
.release/release.sh
+1
-3
No files found.
.release/release.sh
View file @
d1d8c4b5
...
...
@@ -2481,7 +2481,7 @@ if [ -z "$skip_upload" ]; then
# Upload archives
if
upload_gitlab_asset
"
$archive_name
"
"
$archive
"
&&
{
[[
!
-f
"
$nolib_archive
"
]]
||
upload_gitlab_asset
"
$nolib_archive_name
"
"
$nolib_archive
"
;
}
then
# delete existing release for the tag
curl
-sS
-X
DELETE
-H
"PRIVATE-TOKEN:
$gitlab_token
"
"https://gitlab.vuhdo.io/api/v4/projects/
$gitlab_id
/releases/
$tag
"
>
/dev/null
#
curl -sS -X DELETE -H "PRIVATE-TOKEN: $gitlab_token" "https://gitlab.vuhdo.io/api/v4/projects/$gitlab_id/releases/$tag" > /dev/null
_gl_payload_desc
=
$(
cat
"
$changelog_githost
"
| jq
--slurp
--raw-input
'.'
|
awk
-F
'--------------------------------------------------------------'
'{print $1 FS "."}'
|
sed
-e
's/.\{63\}$//'
)
...
...
@@ -2502,7 +2502,6 @@ if [ -z "$skip_upload" ]; then
_gl_payload
=
$(
cat
<<-
EOF
{
"tag_name": "
$tag
",
"ref": "
$tag
",
"name": "
$tag
",
"description":
$_gl_payload_desc
",
"assets": {"links":[
$gitlab_assets
]}
...
...
@@ -2511,7 +2510,6 @@ if [ -z "$skip_upload" ]; then
)
echo
"Creating GitLab release: https://gitlab.vuhdo.io/
$gitlab_slug
/releases"
echo
"_gl_payload=
$_gl_payload
"
resultfile
=
"
$releasedir
/gl_result.json"
result
=
$(
curl
-sS
--retry
3
--retry-delay
10
\
-w
"%{http_code}"
-o
"
$resultfile
"
\
...
...
This diff is collapsed.
Click to expand it.
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