GitHub Release Deployment Issue

coding's Avatar


20 Sep, 2017 10:54 AM

I'm having some issues with github deployment and am not sure whether I am doing something wrong or not. I have a PowerShell script that runs before_build and sets up a bunch of environment variables that are used later on. One of these (ML_ARTIFACT_NAME) is used to dynamically name the artifact when it is built. This is working as expected.

However, in the deploy section of my appveyor.yml I am trying to use this environment variable to specify the artifact for the ghithub release:

- path: MedLaunch\bin\Release\
  name: '$(ML_ARTIFACT_NAME)'
- provider: GitHub
  release: MedLaunch v$(MEDLAUNCH_VERSION_DOT)
    secure: lCQYDdMEEZZKFO0qJkHddSQVHGqB8K1czFJvbBdhfV8X7F17ImQKHvKn7T4S4HM5
  artifact: $(ML_ARTIFACT_NAME)
  draft: true
  prerelease: false
  force_update: true

The error I am getting is:

Collecting artifacts...
Found artifact 'MedLaunch\bin\Release' matching 'MedLaunch\bin\Release' path
Uploading artifacts...
[1/1] MedLaunch\bin\ (36,262,708 bytes)...100%
Deploying using GitHub provider
Creating "MedLaunch v0.5.14.1" release for repository "Asnivor/MedLaunch" tag "" commit "3ad4570518b46b8fc10242065c84fadfb4b22229"...
Error creating GitHub release: Not Found

Am I missing something blindingly obvious? Or is it just that environment variable expansion does not work for 'artifact' in the 'deploy' section of the appveyor.yml?

  1. 1 Posted by coding on 20 Sep, 2017 11:37 AM

    coding's Avatar

    OK, I found the issue. For github deployment to work shallow_clone MUST be set to false (but I had it set to true).

  2. coding closed this discussion on 20 Sep, 2017 11:49 AM.

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

Keyboard shortcuts


? 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