Deploy only when is a tag in an specific branch

I'm trying to configure my appveyor.yml to deploy only when is a tag (annotated tag) in an specific branch. This is a fragment of my appveyor.yml:

  - provider: WebDeploy
    ....
    on:
      branch: appveyor-integration
      appveyor_repo_tag: true
      configuration: Production

I can see in the logs that AppVeyor is skipping the deployment

Skip "WebDeploy" deployment as no branches matched (build branch is "v0.0.1-alpha", deploy on branches "appveyor-integration")

Note: my tag name is v0.0.1-alpha

What am I doing wrong?

  1. Remove branch condition.

    When branch is not sent in webhook payload it's set to tag name.

  2. That works for me.

    Thanks

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 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