Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
Chameleon
Commits
35be2e23
Commit
35be2e23
authored
Mar 22, 2019
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix release archive generation using git-archive and not cpack
parent
6ed83adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tools/release.sh
tools/release.sh
+5
-5
No files found.
tools/release.sh
View file @
35be2e23
...
...
@@ -44,10 +44,10 @@ gen_changelog
echo
$changelog
# generate the archive
mkdir
-p
build-release
cd
build-release
c
make ..
make package_source
wget https://raw.githubusercontent.com/Kentzo/git-archive-all/master/git_archive_all.py
mv
git_archive_all.py git-archive-all
c
hmod
+x git-archive-all
./git-archive-all
--force-submodules
chameleon-
$RELEASE_NAME
.tar.gz
# upload the source archive
GETURL
=
`
echo
curl
--request
POST
--header
\"
PRIVATE-TOKEN:
$RELEASE_TOKEN
\"
--form
\"
file
=
\@
chameleon-
$RELEASE_NAME
.tar.gz
\"
https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/uploads
`
...
...
@@ -62,6 +62,6 @@ COMMAND=`echo curl --header \"Content-Type: application/json\" --header \"PRIVAT
\"
tag_name
\"
:
\"
v
$RELEASE_NAME
\"
,
\
\"
ref
\"
:
\"
$CI_COMMIT_REF_NAME
\"
,
\
\"
description
\"
:
\"
$changelog
\"
,
\
\"
assets
\"
:
{
\"
links
\"
:
[{
\"
name
\"
:
\"
Download release
\"
,
\"
url
\"
:
\"
$CI_PROJECT_URL
/
$MYURL
\"
}]
}
}
\'
\
\"
assets
\"
:
{
\"
links
\"
:
[{
\"
name
\"
:
\"
Download release
\"
,
\"
url
\"
:
\"
$CI_PROJECT_URL$MYURL
\"
}]
}
}
\'
\
--request
POST https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/releases
`
eval
$COMMAND
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