Running deploy_script on master only

Chris's Avatar

Chris

Mar 17, 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. 1 Posted by Ilya Finkelshte... on Mar 17, 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.

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