Prechádzať zdrojové kódy

main.yml: don't deploy natives snapshots to Bintray

Stephen Gold 4 rokov pred
rodič
commit
caedc2b452

+ 0 - 57
.github/actions/tools/bintray.sh

@@ -35,63 +35,6 @@ function bintray_createPackage {
     fi
 }
 
-# uploadFile file destination [REPO] "content" [PACKAGE] [USER] [PASSWORD] [SRCREPO] [LICENSE]
-function bintray_uploadFile {
-    file="$1"
-    dest="$2"
-    
-    echo "Upload $file to $dest"
-
-    repo="$3"
-    type="$4"
-    package="$5"
-
-    user="$6"
-    password="$7"
-   
-    srcrepo="$8"
-    license="$9"
-    publish="${10}"
-
-    bintray_createPackage $repo $package $user $password $srcrepo $license
-
-    url="https://api.bintray.com/$type/$repo/$package/$dest"
-    if [ "$publish" = "true" ]; then url="$url;publish=1"; fi
-
-    curl -T "$file" -u$user:$password "$url"
-     
-}
-
-function bintray_uploadAll {
-    path="$1"
-    destpath="$2"
-    repo="$3"
-    type="$4"
-    package="$5"
-
-    user="$6"
-    password="$7"
-   
-    srcrepo="$8"
-    license="$9"
-    publish="${10}"
-
-    cdir="$PWD"
-    cd "$path"
-
-    files="`find . -type f -print`"
-    IFS="
-"
-    set -f
-    for f in $files; do
-        destfile="$destpath/${f:2}"
-        bintray_uploadFile $f $destfile $repo $type $package $user $password $srcrepo $license $publish
-    done
-    set +f
-    unset IFS
-    cd "$cdir"
-}
-
 # minio_uploadFile <LOCAL_FILEPATH> <REMOTE_FILEPATH> <MINIO_URL> <MINIO_ACCESS_KEY> <MINIO_SECRET_KEY>
 #
 # Upload the specified file to the specified MinIO instance.

+ 2 - 17
.github/workflows/main.yml

@@ -4,7 +4,7 @@
 # Quick overview of what is going on in this script:
 #   - Build natives for android
 #   - Merge the natives, build the engine, create the zip release, maven artifacts, javadoc and native snapshot
-#   - (only when native code changes) Deploy the natives snapshot to Bintray and the MinIO instance
+#   - (only when native code changes) Deploy the natives snapshot to the MinIO instance
 #   - (only when building a release) Deploy everything else to github releases, github packet registry and bintray
 #   - (only when building a release) Update javadoc.jmonkeyengine.org
 # Note:
@@ -13,7 +13,7 @@
 #   running workflow, we use it to store the result of each job since the filesystem
 #   is not maintained between jobs.
 ################# CONFIGURATIONS #####################################################
-# >> Configure BINTRAY RELEASE & NATIVE SNAPSHOT
+# >> Configure BINTRAY RELEASE
 #   Configure the following secrets/variables (customize the values with your own)
 #     BINTRAY_GENERIC_REPO=riccardoblsandbox/jmonkeyengine-files
 #     BINTRAY_MAVEN_REPO=riccardoblsandbox/jmonkeyengine
@@ -253,21 +253,6 @@ jobs:
                   https://objects.jmonkeyengine.org \
                   jmonkeyengine \
                   ${{ secrets.OBJECTS_KEY }}
-              fi
-
-              if [ "${{ secrets.BINTRAY_GENERIC_REPO }}" = "" ];
-              then               
-                echo "Configure the following secrets to enable natives snapshot deployment to Bintray:"
-                echo "BINTRAY_GENERIC_REPO, BINTRAY_USER, BINTRAY_APIKEY"           
-              else
-                # Deploy snapshot
-                bintray_uploadFile dist/jme3-natives.zip \
-                  $GITHUB_SHA/$GITHUB_SHA/jme3-natives.zip \
-                  ${{ secrets.BINTRAY_GENERIC_REPO }} "content" "natives" \
-                  ${{ secrets.BINTRAY_USER }} \
-                  ${{ secrets.BINTRAY_APIKEY }}  \
-                  "https://github.com/${GITHUB_REPOSITORY}" \
-                  "${{ secrets.BINTRAY_LICENSE }}" "true"
 
                 # We reference the snapshot by writing its commit hash in  natives-snapshot.properties 
                 echo "natives.snapshot=$GITHUB_SHA" > natives-snapshot.properties