tag:help.appveyor.com,2012-11-13:/discussions/problems/2168-cant-create-a-github-releaseAppVeyor: Discussion 2018-08-25T01:56:18Ztag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:09:43Z2015-05-18T18:09:43ZCan't create a Github Release<div><p>OK, I see. GitHub was redesigned a little bit. Personal access
token could be added here: <a href="https://github.com/settings/tokens">https://github.com/settings/tokens</a></p>
<p>Will update docs shortly.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:13:27Z2015-05-18T18:13:27ZCan't create a Github Release<div><p>Alright thanks. I figured that's what I need so I just used that
instead, but the problem is that give me a access denied. I use the
same key and your instructions to push back to github once the
build is complete, and that works.</p>
<p>The one thing is, I'm trying to push the release to an
organization repo(that I'm the owner of), and at the end when I
push back to github I push back to my fork.</p>
<p>I searched high and low but couldn't find any information
reguarding personal access tokens and api calls to organization
repo's...I'd assume since I have full access to the repo I
shouldn't have any problem, but that doesn't seem to be the case.
Oh also, what it could be, is I made it a secret variable, and then
put $(access_code) in that box...is it possible that that box
doesn't properly read that?</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:19:13Z2015-05-18T18:19:13ZCan't create a Github Release<div><p>Well, <code>$(access_code)</code> should work unless it's not
Pull Request where encrypted variables don't work. Anyway, you can
try explicitly specifying access code in that box.</p>
<p>To make sure you can create release in that repo you can use
Poster or Fiddler to call this API: <a href="https://developer.github.com/v3/repos/releases/#create-a-release">https://developer.github.com/v3/repos/releases/#create-a-release</a>
with <code>Authorization: token
<your-personal-access-token></code> header added.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:28:43Z2015-05-18T18:28:43ZCan't create a Github Release<div><p>Alright, I tried that and I got access denied again. I even gave
the token access to everything I could and it didn't work. I opened
a support ticket with github and I'll post back here with what I
find.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:31:44Z2015-05-18T18:31:44ZCan't create a Github Release<div><p>Have you tried calling GitHub API directly?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T18:36:12Z2015-05-18T18:36:12ZCan't create a Github Release<div><p>OK nevermind, using the api key and fiddler I was able to make
it work. I just typo'd part of the header.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:03:29Z2015-05-18T19:03:29ZCan't create a Github Release<div><p>Alright, so I generated a new access token, and that doesn't
seem to throw me a 401, it does however take a really long time and
then it throws some general error</p>
<p><code>Deploying using GitHub provider Creating "1.1.178.0"
release for repository "kellyelton/OCTGN" tag "1.1.178.0" commit
"6b1c8527cb946c5223d532ead63ae6d2bb82944f"...OK Uploading
"OCTGN-Setup-3.1.170.0.exe" to release assets...An error occurred
while sending the request.</code></p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:08:12Z2015-05-18T19:08:12ZCan't create a Github Release<div><p>Alright(sorry if you can see all this and I'm just spamming you)
but I tried again, and again it took a really long time, and return
this error</p>
<p><a href="https://ci.appveyor.com/project/KellyElton/octgn/build/1.1.180.0#L3061">
https://ci.appveyor.com/project/KellyElton/octgn/build/1.1.180.0#L3061</a></p>
<p>"A task was canceled"</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:10:25Z2015-05-18T19:10:25ZCan't create a Github Release<div><p>Also I just noticed that it's not correctly reading the version
number.</p>
<p>At the very beginning(in the install script) I use the API to
change the version number, and I also set the environmental
variable of the version number...yet in the github release
deployment deal, if I don't change anything, it defaults to the
version number that it starts with before I change anything.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:13:24Z2015-05-18T19:13:24ZCan't create a Github Release<div><p>How large is that file?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:14:58Z2015-05-18T19:14:58ZCan't create a Github Release<div><p>Looks like 10mb</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:17:17Z2015-05-18T19:17:17ZCan't create a Github Release<div><p>Hm, and it fails like in 1 second after release created...
interesting</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:21:33Z2015-05-18T19:21:33ZCan't create a Github Release<div><p>Well not 1 second...the upload seems to take like minutes and
minutes, probably like 5 or 6 or something, then it fails.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:26:28Z2015-05-18T19:26:28ZCan't create a Github Release<div><p>OK, I see. It fails on 10th minute as we have 10 minutes timeout
while uploading a file. Didn't expected it could take so long to
push artifact to release.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T19:30:05Z2015-05-18T19:30:05ZCan't create a Github Release<div><p>Ok so I did it on their user interface, and it took 10 seconds.
I wonder why that is.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T20:13:46Z2015-05-18T20:13:46ZCan't create a Github Release<div><p>Sorry not trying to be a pest here, but I was just seeing if you
were looking into this.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T21:08:07Z2015-05-18T21:08:07ZCan't create a Github Release<div><p>Need to further investigate that. Uploading asset through API is
not the same as on UI: <a href="https://developer.github.com/v3/repos/releases/#upload-a-release-asset">
https://developer.github.com/v3/repos/releases/#upload-a-release-asset</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T21:56:49Z2015-05-18T21:56:49ZCan't create a Github Release<div><p>Ok. Well it looks like it's actually working quickly now. Maybe
github was just having issues. I also noticed some page loads were
taking a long time when I was doing other stuff.</p>
<p>As a side note, I noticed that I changed the build version
number in the Install script portion, and doing assembly patching
with {version} still tried to use the initial version number. I'm
not sure if this is a bug or intended, though I worked around it
anyways.</p>
<p>Thanks again for the help.</p></div>its.the.doctag:help.appveyor.com,2012-11-13:Comment/368656432015-05-18T22:14:34Z2015-05-18T22:14:34ZCan't create a Github Release<div><p>Patching with version updated is supposed to work: <a href="https://github.com/appveyor/ci/issues/263#issuecomment-101526825">https://github.com/appveyor/ci/issues/263#issuecomment-101526825</a></p>
<p>I've just made a simple test: <a href="https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/1.5.5.497">
https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/...</a></p></div>Feodor Fitsner