Is deploy_script supposed to work?

I see in the documentation for appveyor.yml that there is a deploy_script key for writing a custom deployment script. I tried using one, with a format like:

deploy_script:
  -cmd: 'IF %APPVEYOR_REPO_TAG%==true curl --no-progress-meter -f -X POST -H "Authorization: Bearer %BITBUCKET_API_TOKEN%" https://api.bitbucket.org/2.0/repositories/%APPVEYOR_REPO_NAME%/downloads -F files=@%DCXAZUREKEYSIGNDNG_ARCHIVE_NAME%.zip'

However, I see no evidence of my deployment being run.

Is the documentation wrong? Or am I missing a way to somehow activate the deployment?

Thanks.

  1. Yes, this is how it's supposed to work. Do you see that command (not its output) in the build log? Try something simple, like echo, without condition.

  2. Thanks for your response. I realized my mistake. I was missing a space before cmd. The following works:

    deploy_script:  
      - cmd: 'IF %APPVEYOR_REPO_TAG%==true curl --no-progress-meter -f -X POST -H "Authorization: Bearer %BITBUCKET_API_TOKEN%" https://api.bitbucket.org/2.0/repositories/%APPVEYOR_REPO_NAME%/downloads -F files=@%DCXAZUREKEYSIGNDNG_ARCHIVE_NAME%.zip'
    <pre><code></code>
    </pre>
    

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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