From 7185c979308f617ace0b31efada32223d9a118b1 Mon Sep 17 00:00:00 2001 From: Fabian Zobrist Date: Sat, 4 Mar 2023 00:34:52 +0100 Subject: [PATCH] Test upload url --- .drone.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index a2c0734..2ddd314 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,13 +25,6 @@ steps: - let timestamp=$(date +%s)/10 - echo "versionCode=$timestamp" >> version.properties -- name: build - image: mingc/android-build-box - commands: - - ./gradlew test - - ./gradlew assembleRelease - - ./gradlew bundleRelease - - name: deploy latest build image: curlimages/curl environment: @@ -42,6 +35,7 @@ steps: SEAFILE_REPO: daffda8b-5840-4a65-b6d0-73b991facfb6 commands: - 'UPLOAD_URL=$(curl -H "Authorization: Token $SEAFILE_API_KEY" https://seafile.zobrist.me/api2/repos/$SEAFILE_REPO/upload-link/ | tr -d "\"")' + - echo $UPLOAD_URL - 'curl -H "Authorization: Token $SEAFILE_API_KEY" -F file=@$APK_FILE -F parent_dir=/ -F relative_path=latest/ -F replace=1 "$UPLOAD_URL"' - 'curl -H "Authorization: Token $SEAFILE_API_KEY" -F file=@$BUNDLE_FILE -F parent_dir=/ -F relative_path=latest/ -F replace=1 "$UPLOAD_URL"'