This commit is contained in:
@@ -25,13 +25,6 @@ steps:
|
|||||||
- let timestamp=$(date +%s)/10
|
- let timestamp=$(date +%s)/10
|
||||||
- echo "versionCode=$timestamp" >> version.properties
|
- echo "versionCode=$timestamp" >> version.properties
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: mingc/android-build-box
|
|
||||||
commands:
|
|
||||||
- ./gradlew test
|
|
||||||
- ./gradlew assembleRelease
|
|
||||||
- ./gradlew bundleRelease
|
|
||||||
|
|
||||||
- name: deploy latest build
|
- name: deploy latest build
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
environment:
|
environment:
|
||||||
@@ -42,6 +35,7 @@ steps:
|
|||||||
SEAFILE_REPO: daffda8b-5840-4a65-b6d0-73b991facfb6
|
SEAFILE_REPO: daffda8b-5840-4a65-b6d0-73b991facfb6
|
||||||
commands:
|
commands:
|
||||||
- 'UPLOAD_URL=$(curl -H "Authorization: Token $SEAFILE_API_KEY" https://seafile.zobrist.me/api2/repos/$SEAFILE_REPO/upload-link/ | tr -d "\"")'
|
- '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=@$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"'
|
- 'curl -H "Authorization: Token $SEAFILE_API_KEY" -F file=@$BUNDLE_FILE -F parent_dir=/ -F relative_path=latest/ -F replace=1 "$UPLOAD_URL"'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user