added util/upload-distfiles.sh

This commit is contained in:
Bert van der Weerd 2021-04-12 13:34:39 +02:00
parent c789457faa
commit e1ff04a597
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

24
util/upload-distfiles.sh Normal file
View file

@ -0,0 +1,24 @@
#!/bin/bash
pkgver=87.0
private_token=$1
if [ -z $private_token ]; then
echo "Please specify the Gitlab PRIVATE TOKEN on the commandline."
exit 1
fi
echo ""
echo ""
curl --request POST --header "PRIVATE-TOKEN: ${private_token}" --form "file=@librewolf-${pkgver}.en-US.win64-setup.exe" "https://gitlab.com/api/v4/projects/13852981/uploads"
echo ""
echo ""
curl --request POST --header "PRIVATE-TOKEN: ${private_token}" --form "file=@librewolf-${pkgver}.en-US.win64.zip" "https://gitlab.com/api/v4/projects/13852981/uploads"
echo ""
echo ""
curl --request POST --header "PRIVATE-TOKEN: ${private_token}" --form "file=@librewolf-${pkgver}.en-US.win64-permissive-nightly-setup.exe" "https://gitlab.com/api/v4/projects/13852981/uploads"
echo ""
echo ""