Fixed auto-creating forum post on new release

(cherry picked from commit c4a72e60bc)
This commit is contained in:
Kenneth Skovhede
2019-07-14 11:54:24 +02:00
parent cfd7619d8a
commit 2a17e6cdf5
+3 -1
View File
@@ -354,9 +354,11 @@ ${RELEASE_CHANGEINFO_NEWS}
DISCOURSE_APIKEY=$(echo "${DISCOURSE_TOKEN}" | cut -d ":" -f 2)
curl -X POST "https://forum.duplicati.com/posts" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F "api_key=${DISCOURSE_APIKEY}" \
-F "api_username=${DISCOURSE_USERNAME}" \
-F "category=Releases" \
-F "category=10" \
-F "title=Release: ${RELEASE_VERSION} (${RELEASE_TYPE}) ${RELEASE_TIMESTAMP}" \
-F "raw=${body}"
fi