Name vs File
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
37ce0bd1d2
commit
3b818e1181
|
@ -130,8 +130,7 @@ steps:
|
||||||
# TODO When we update Flutter Container to 3.19 migrate these calls...
|
# TODO When we update Flutter Container to 3.19 migrate these calls...
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y jq openssh-client ca-certificates curl
|
- apt install -y jq openssh-client ca-certificates curl
|
||||||
- cd deploy
|
- ./upload-releases.sh deploy/cwtch-`cat VERSION`.apk application/vnd.android.package-archive cwtch-`cat VERSION`.apk
|
||||||
- ../upload-releases.sh cwtch-`cat ../VERSION`.apk application/vnd.android.package-archive
|
|
||||||
|
|
||||||
- name: deploy-buildfiles
|
- name: deploy-buildfiles
|
||||||
image: kroniak/ssh-client
|
image: kroniak/ssh-client
|
||||||
|
|
|
@ -10,7 +10,7 @@ if [ "$RELEASEID" = "null" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
URL="https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/$RELEASEID/assets?name=$1"
|
URL="https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/$RELEASEID/assets?name=$3"
|
||||||
FILE="@$1"
|
FILE="@$1"
|
||||||
RESULT=$(curl -o /dev/null -w "%{http_code}" -X POST -H "Authorization: token $GOGS_ACCOUNT_TOKEN" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "attachment=$FILE;type=$2" $URL)
|
RESULT=$(curl -o /dev/null -w "%{http_code}" -X POST -H "Authorization: token $GOGS_ACCOUNT_TOKEN" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "attachment=$FILE;type=$2" $URL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue