Skip to content
Snippets Groups Projects
Commit e8c1e2ae authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Fix: ...

parent c727d837
No related branches found
No related tags found
1 merge request!14Fix: ...
...@@ -239,9 +239,10 @@ IEnumerable<string> redirectedStandardOutput; ...@@ -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; 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); Information("Create tag: {0}", result.Content.ReadAsStringAsync().Result);
description = "abc\nabc";
// create release // create release
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\", \"description\": \"{description}\"}}"; 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; result = client.PostAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", content).Result;
Information("Create release: {0}", result.Content.ReadAsStringAsync().Result); Information("Create release: {0}", result.Content.ReadAsStringAsync().Result);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment