diff --git a/.drone.yml b/.drone.yml index 86890868..1fffae52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -119,6 +119,7 @@ steps: environment: BUILDFILES_KEY: from_secret: buildfiles_key + secrets: [gogs_account_token] volumes: - name: deps path: /root/.pub-cache diff --git a/LIBCWTCH-GO.version b/LIBCWTCH-GO.version index 96b37d41..79b03a0d 100644 --- a/LIBCWTCH-GO.version +++ b/LIBCWTCH-GO.version @@ -1 +1 @@ -2024-02-12-11-04-v0.0.12 \ No newline at end of file +2024-02-26-09-28-v0.0.13 \ No newline at end of file diff --git a/upload-releases.sh b/upload-releases.sh index 1c19191f..c568d630 100755 --- a/upload-releases.sh +++ b/upload-releases.sh @@ -10,7 +10,7 @@ if [ "$RELEASEID" = "null" ]; then 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" 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)