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
echo $changelog
# generate the archive
mkdir -p build-release
cd build-release
cmake ..
make package_source
mv git-archive-all
chmod +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\"$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$CI_PROJECT_ID/releases`
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