Releasing OSS on GitHub

kyle.m.hall's Avatar

kyle.m.hall

27 Jul, 2018 04:34 PM

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.

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.

Here is my appveyor.yml:

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

Right now I'm getting this error:
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.
Parameter name: auth_token

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.

Thanks!
Kyle

  1. Support Staff 1 Posted by Ilya Finkelshte... on 27 Jul, 2018 06:06 PM

    Ilya Finkelshteyn's Avatar

    secure means that value is encrypted. You can do one of the following:

  2. 2 Posted by kyle.m.hall on 01 Aug, 2018 02:04 PM

    kyle.m.hall's Avatar

    Thanks! For some reason the encrypted version did not work for me ( same error ) but removing the `secure` part did!

  3. kyle.m.hall closed this discussion on 01 Aug, 2018 02:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac