forked from jcefmaven/jcefmaven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload_artifacts.sh
47 lines (35 loc) · 1.46 KB
/
upload_artifacts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
if [ ! $# -eq 5 ]
then
echo "Usage: ./upload_artifacts.sh <build_meta_url> <stageRepoUrl> <releaseRepoUrl> <repo_id> <mvn_version>"
echo "Release repo url should NOT end in /!"
exit 1
fi
#CD to dir of this script
cd "$( dirname "$0" )"
#Set build info
. scripts/set_build_info.sh $1 $5
#Move artifacts to a non-protected folder
rm -rf upload
mkdir upload
cp out/* upload/
echo "Uploading maven artifacts for $mvn_version..."
#Upload Jogamp libraries
./upload_artifact.sh $2 $3 $4 me.friwi jogl-all $jogl_build
./upload_artifact.sh $2 $3 $4 me.friwi gluegen-rt $jogl_build
#Upload API
./upload_artifact.sh $2 $3 $4 me.friwi jcef-api $release_tag
#Upload jcefmaven
./upload_artifact.sh $2 $3 $4 me.friwi jcefmaven $mvn_version
#Upload linux natives
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-linux-amd64 $release_tag
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-linux-arm64 $release_tag
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-linux-arm $release_tag
#Upload windows natives
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-windows-amd64 $release_tag
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-windows-arm64 $release_tag
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-windows-i386 $release_tag
#Upload macosx natives
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-macosx-amd64 $release_tag
./upload_artifact.sh $2 $3 $4 me.friwi jcef-natives-macosx-arm64 $release_tag
echo "Done uploading maven artifacts!"