Is deploy_script supposed to work?

nbrink's Avatar

nbrink

23 Jul, 2026 10:45 PM

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. Support Staff 1 Posted by Feodor Fitsner on 24 Jul, 2026 04:05 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by nbrink on 25 Jul, 2026 06:39 PM

    nbrink's Avatar

    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

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

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