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

Recent Discussions

19 Oct, 2017 02:25 AM
18 Oct, 2017 07:26 PM
18 Oct, 2017 11:00 AM
18 Oct, 2017 08:54 AM
18 Oct, 2017 07:42 AM

 

17 Oct, 2017 07:36 PM
17 Oct, 2017 05:39 PM
17 Oct, 2017 04:29 PM
17 Oct, 2017 07:49 AM
16 Oct, 2017 11:38 PM
16 Oct, 2017 10:01 PM