From e8c1e2aece6008bcae7e754fe9bf340ae44ed254 Mon Sep 17 00:00:00 2001 From: "L. Ellenbeck" <ellenbeck@itc.rwth-aachen.de> Date: Wed, 22 Jan 2020 15:56:07 +0100 Subject: [PATCH] Fix: ... --- build.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index 56e829e..78df8ec 100644 --- a/build.cake +++ b/build.cake @@ -239,9 +239,10 @@ IEnumerable<string> redirectedStandardOutput; var result = client.PostAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master", null).Result; Information("Create tag: {0}", result.Content.ReadAsStringAsync().Result); + description = "abc\nabc"; // create release var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\", \"description\": \"{description}\"}}"; - var content = new StringContent(json, Encoding.ASCII, "application/json"); + var content = new StringContent(json, Encoding.UTF8, "application/json"); result = client.PostAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", content).Result; Information("Create release: {0}", result.Content.ReadAsStringAsync().Result); }); -- GitLab