tag:help.appveyor.com,2012-11-13:/discussions/problems/15346-releasing-oss-on-githubAppVeyor: Discussion 2018-10-19T08:18:51Ztag:help.appveyor.com,2012-11-13:Comment/457875292018-07-27T16:34:37Z2018-07-27T17:59:16ZReleasing OSS on GitHub<div><p>I've been able to successfully build my project, and create my installer. I'd like to make a public GitHub prerelease for each build of master.</p>
<p>I've added an environment variable to AppVeyor with my GitHub token. I can't put it directly in appveyor.yml since the file is part of the project and is publicly available.</p>
<p>Here is my appveyor.yml:</p>
<pre>
<code>image:
- Visual Studio 2013
install:
- set QTDIR=C:\Qt\5.5\mingw492_32
- set PATH=%PATH%;C:\MinGW\bin;%QTDIR%\bin;"C:\\Program Files (x86)\\Inno Setup 5"
build_script:
- qmake Libki.pro
- mingw32-make
- dir release
- copy release\libkiclient.exe deploy\windows\libkiclient.exe
- cd deploy\windows
- ISCC.exe installer-wizard.iss
deploy:
release: libki-client-v$(appveyor_build_version)
description: 'Libki Client (Unstable) [$(APPVEYOR_REPO_COMMIT)]'
provider: GitHub
auth_token:
secure: $(GITHUB_TOKEN)
artifact: C:\projects\libki-client\deploy\windows\Output\Libki_Client_Installer.exe
draft: false
prerelease: true
on:
branch: master # release from master branch only
appveyor_repo_tag: false # deploy on tag push only</code>
</pre>
<p>Right now I'm getting this error:<br>
Error creating GitHub release: Provider setting not found or it's value is empty. If secure setting is used please check that value was encrypted (or YAML was exported) while being logged under correct account.<br>
Parameter name: auth_token</p>
<p>Any idea what I'm doing wrong? I tried replacing $(GITHUB_TOKEN) with %GITHUB_TOKEN% but that make the appveyor.yml completely invalid and the build didn't even start.</p>
<p>Thanks!<br>
Kyle</p></div>kyle.m.halltag:help.appveyor.com,2012-11-13:Comment/457875292018-07-27T18:06:05Z2018-07-27T18:06:05ZReleasing OSS on GitHub<div><p><code>secure</code> means that value is encrypted. You can do one of the following:</p>
<ul>
<li>
<p>encrypt your GitHub token with <a href="https://ci.appveyor.com/tools/encrypt">https://ci.appveyor.com/tools/encrypt</a> and copy-paste encrypted token to YAML, replacing <code>$(GITHUB_TOKEN)</code></p>
</li>
<li>
<p>remove <code>secure</code> e.g. <code>auth_token: $(GITHUB_TOKEN)</code></p>
</li>
</ul></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/457875292018-08-01T14:04:18Z2018-08-01T14:04:18ZReleasing OSS on GitHub<div><p>Thanks! For some reason the encrypted version did not work for me ( same error ) but removing the <code>secure</code> part did!</p></div>kyle.m.hall