publish release *after* uploading the asset
[pharext/pharext.org] / app / Github / API / Releases / CreateRelease.php
index 68854f7697d8c730f4060165c2dad2ba9fda2e86..1cb22221fb1df584989573acbb1d5d83820e985f 100644 (file)
@@ -17,6 +17,7 @@ class CreateRelease extends Call
                ]);
                $request->getBody()->append(json_encode([
                        "tag_name" => $this->args["tag"],
+                       "draft" => true,
                ]));
                $this->api->getClient()->enqueue($request, function($response) use($callback) {
                        if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {