GitHub Release Deployment Issue

coding's Avatar

coding

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:

artifacts:
- path: MedLaunch\bin\Release\
  name: '$(ML_ARTIFACT_NAME)'
deploy:
- provider: GitHub
  tag: $(MEDLAUNCH_VERSION_DOT)
  release: MedLaunch v$(MEDLAUNCH_VERSION_DOT)
  description: v$(MEDLAUNCH_RELEASE_DESCRIPTION)
  auth_token:
    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\MedLaunch_v0_5_14_1-DEVBUILD-66.zip (36,262,708 bytes)...100%
Deploying using GitHub provider
Creating "MedLaunch v0.5.14.1" release for repository "Asnivor/MedLaunch" tag "0.5.14.1" 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

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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM