tag:help.appveyor.com,2012-11-13:/discussions/questions/9221-syntax-of-the-release-name-value-in-the-deploy-section-of-the-appveyoryml-configuration-fileAppVeyor: Discussion 2018-10-19T08:18:30Ztag:help.appveyor.com,2012-11-13:Comment/435233142017-09-21T23:16:03Z2017-09-21T23:16:03ZSyntax of the release name value in the deploy section of the appveyor.yml configuration file<div><p>Please try to specify <code>$(APPVEYOR_REPO_TAG_NAME)</code> in the "Tag" field and remove <code>$(APPVEYOR_REPO_TAG_NAME)</code> from the "release" field.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/435233142017-09-22T10:04:55Z2017-09-22T10:38:28ZSyntax of the release name value in the deploy section of the appveyor.yml configuration file<div><p>Hello,</p>
<p>Thank you, it works very well.</p>
<p>I have another small problem.</p>
<p>In the description field, I would like to extract only the name of the repo without the name of the owner.</p>
<p>The APPVEYOR_REPO_NAME environment variable contains 'owner-name/repo-name'.</p>
<p>Here is my new deploy section:</p>
<p>deploy:<br>
- provider: GitHub tag: $(APPVEYOR_REPO_TAG_NAME) release: Release $(APPVEYOR_REPO_TAG_NAME) description: This is the release $(APPVEYOR_REPO_TAG_NAME) of the addon $(APPVEYOR_REPO_NAME). auth_token: secure: abcd artifact: addon on: appveyor_repo_tag: true</p>
<p>Thanks again for your help.</p></div>abdelkrim.bensaidtag:help.appveyor.com,2012-11-13:Comment/435233142017-09-22T18:27:04Z2017-09-22T18:27:04ZSyntax of the release name value in the deploy section of the appveyor.yml configuration file<div><p><code>APPVEYOR_PROJECT_NAME</code> and <code>APPVEYOR_PROJECT_SLUG</code> by default are the same, but you cannot rely on them if you rename the project or have more than one project for the same repo (slug will be appended with random string in this case). You can run something like this in <code>before_deploy</code> script:</p>
<pre>
<code>- ps: $env:REPO_NAME = $env:APPVEYOR_REPO_NAME.Substring($env:APPVEYOR_REPO_NAME.IndexOf('/') + 1)</code>
</pre>
<p>and then use <code>$(REPO_NAME)</code> in your GitHub deployment settings.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/435233142017-09-23T11:21:38Z2017-09-23T11:31:05ZSyntax of the release name value in the deploy section of the appveyor.yml configuration file<div><p>Thank you very much,</p>
<p>It's great.</p>
<p>This possibility of creating new environment variables is very appreciable.</p>
<p>Thanks again for all.</p></div>abdelkrim.bensaid