Running deploy_script on master only

Chris's Avatar

Chris

17 Mar, 2017 02:13 PM

Is there a way of running deploy_script: on master only? I don't want to duplicate the build sections twice, I need a single deploy section (when pull requests go through).

Thanks

  1. Support Staff 1 Posted by Ilya Finkelshte... on 17 Mar, 2017 03:57 PM

    Ilya Finkelshteyn's Avatar

    You can wrap your script code with IF ($env:APPVEYOR_REPO_BRANCH -eq "master") {<your_other_script_code>}, or do the similar in cmd. <your_other_script_code> can be actual script code or .ps1/.bat/.cmd file.

    Thanks!
    Ilya.

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