Deploy only when is a tag in an specific branch

Fidel Garcia's Avatar

Fidel Garcia

29 Jun, 2016 03:17 PM

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. Support Staff 1 Posted by Feodor Fitsner on 29 Jun, 2016 05:32 PM

    Feodor Fitsner's Avatar

    Remove branch condition.

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

  2. 2 Posted by Fidel Garcia on 29 Jun, 2016 06:20 PM

    Fidel Garcia's Avatar

    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