Commit 35be2e23 authored by PRUVOST Florent's avatar PRUVOST Florent

fix release archive generation using git-archive and not cpack

parent 6ed83adb
...@@ -44,10 +44,10 @@ gen_changelog ...@@ -44,10 +44,10 @@ gen_changelog
echo $changelog echo $changelog
# generate the archive # generate the archive
mkdir -p build-release wget https://raw.githubusercontent.com/Kentzo/git-archive-all/master/git_archive_all.py
cd build-release mv git_archive_all.py git-archive-all
cmake .. chmod +x git-archive-all
make package_source ./git-archive-all --force-submodules chameleon-$RELEASE_NAME.tar.gz
# upload the source archive # 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` 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 ...@@ -62,6 +62,6 @@ COMMAND=`echo curl --header \"Content-Type: application/json\" --header \"PRIVAT
\"tag_name\": \"v$RELEASE_NAME\", \ \"tag_name\": \"v$RELEASE_NAME\", \
\"ref\": \"$CI_COMMIT_REF_NAME\", \ \"ref\": \"$CI_COMMIT_REF_NAME\", \
\"description\": \"$changelog\", \ \"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` --request POST https://gitlab.inria.fr/api/v4/projects/$CI_PROJECT_ID/releases`
eval $COMMAND eval $COMMAND
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment