New Cwtch Version #853
|
@ -119,6 +119,7 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
BUILDFILES_KEY:
|
BUILDFILES_KEY:
|
||||||
from_secret: buildfiles_key
|
from_secret: buildfiles_key
|
||||||
|
secrets: [gogs_account_token]
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /root/.pub-cache
|
path: /root/.pub-cache
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2024-02-12-11-04-v0.0.12
|
2024-02-26-09-28-v0.0.13
|
|
@ -10,7 +10,7 @@ if [ "$RELEASEID" = "null" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
URL="$PLUGIN_GOGS_URL/api/v1/repos/$DRONE_REPO/releases/$RELEASEID/assets?name=$1"
|
URL="https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/$RELEASEID/assets?name=$1"
|
||||||
|
|||||||
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
or borrow from the notify step in drone