Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 872dd655 authored by hhakim's avatar hhakim
Browse files

Add a CI job to upload the release packages (except the whl/pip packages).

parent b27d83d0
No related branches found
No related tags found
No related merge requests found
Pipeline #834040 skipped
......@@ -636,3 +636,19 @@ pypi_pub:
- tags
tags:
- linux
pkg_upload:
stage: pkg_pub
script:
- misc/continuous_integration/upload_pkg.sh
needs:
- job: pkg_macos_release
artifacts: true
- job: pkg_win_release
artifacts: true
- job: pkg_linux_release
artifacts: true
only:
- tags
tags:
- linux
#!/bin/sh
if [[ -z "$UP_TOKEN" ]]
then
echo UP_TOKEN variable is not set in the environment
exit 1
fi
# at each new tag the branch packages (of faust-packages project) is deleted and created again to avoid storing too many packages
curl --request DELETE --header "PRIVATE-TOKEN: $UP_TOKEN" "https://gitlab.inria.fr/api/v4/projects/29950/repository/branches/packages"
curl --request POST --header "PRIVATE-TOKEN: $UP_TOKEN" "https://gitlab.inria.fr/api/v4/projects/29950/repository/branches?branch=packages&ref=master"
for PKG in build/faust-${CI_COMMIT_TAG}.pkg build/faust-$CI_COMMIT_TAG-amd64.exe build/faust-$CI_COMMIT_TAG-x86_64.*
do
echo
curl --request POST --form "branch=packages" --form "commit_message=Add package $(basename $PKG)" --form "start_branch=packages" --form "actions[][action]=create" --form "actions[][file_path]=$(basename $PKG)" --form "actions[][content]=@$PKG" --header "PRIVATE-TOKEN: $UP_TOKEN" "https://gitlab.inria.fr/api/v4/projects/29950/repository/commits" || break
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment