tag:help.appveyor.com,2012-11-13:/discussions/problems/11285-github-deployment-no-longer-worksAppVeyor: Discussion 2018-10-19T08:18:38Ztag:help.appveyor.com,2012-11-13:Comment/445355202018-01-18T13:46:05Z2018-01-18T13:46:06ZGitHub deployment no longer works<div><p>Hello,</p>
<p>I'm using AppVeyor to deploy build artifacts to GitHub and it used to work great, as can be seen here:<br>
<a href="https://ci.appveyor.com/project/obones/xgboost-jars/build/1.0.3">https://ci.appveyor.com/project/obones/xgboost-jars/build/1.0.3</a><br>
As I have made a few changes to the repository lately, a build was triggered but it failed at the checkout step. I was able to fix these by changing the relevant part in appveyor.yml and got back to a working build situation, as can be seen here:<br>
<a href="https://ci.appveyor.com/project/obones/xgboost-jars/build/1.0.11">https://ci.appveyor.com/project/obones/xgboost-jars/build/1.0.11</a></p>
<p>However, the GitHub deployment part no longer works, despite not touching anything in the deploy section. It gives the following error message:<br>
"GitHub" deployment has been skipped as environment variable has not matched ("appveyor_repo_tag" is "false", should be "true")</p>
<p>But what I don't get is that I have that variable set in my config that worked, hasn't changed since then, and looks like this:</p>
<pre>
<code>deploy:
provider: GitHub
tag: '$(XGBOOST_VERSION)'
description: ''
force_update: true
auth_token:
secure: (obfuscated)
on:
appveyor_repo_tag: true</code>
</pre>
<p>I must have missed some announcement but I could not find it, nor could I find any discussion here that seemed to be relevant to this issue.</p></div>obonestag:help.appveyor.com,2012-11-13:Comment/445355202018-01-18T18:51:56Z2018-01-18T18:51:56ZGitHub deployment no longer works<div><p>It looks like everything works as expected. You have the following <a href="https://www.appveyor.com/docs/deployment/#deploy-on-tag-github-and-gitlab-only">tag deployment condition</a>:</p>
<pre>
<code> on:
appveyor_repo_tag: true</code>
</pre>
<p>Therefore build is going to start only when tag was created. Your deployment happened when you created <a href="https://github.com/obones/xgboost-jars/releases/tag/0.7-20170913161514">0.7-20170913161514</a> tag. It did not started the same way when no tag was created, see <a href="https://ci.appveyor.com/project/obones/xgboost-jars/build/1.0.2">this older build</a>.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445355202018-01-19T08:54:40Z2018-01-19T08:54:40ZGitHub deployment no longer works<div><p>Thanks for your answer.<br>
It made me think about tags and I remembered that they have to be explicitly pushed to the repository for them to appear.<br>
This is what I did this morning, and tag 0.7-20180119110000 (along others) is now visible in the github repository.<br>
This push triggered a build on master that did not deploy, as expected because it is not a tag.<br>
But I don't see a build being planned because of the 0.7-20180119110000 tag. Should I wait for it a bit longer?</p></div>obonestag:help.appveyor.com,2012-11-13:Comment/445355202018-01-19T15:14:46Z2018-01-19T15:14:46ZGitHub deployment no longer works<div><p>Well, never mind, I created a new tag this afternoon with real changes and it triggered properly, with a valid deployment at the end.<br>
Sorry for the noise.</p></div>obones