reference .ps1 file instead of writing script in before_package textbox

kristian's Avatar

kristian

16 Apr, 2019 10:28 AM

Hi,

Is it possible to call a .ps1 file in before_package event instead of writing script in the textbox.
When including multiple lines of powershell in a yml file, its getting very hard to read.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 16 Apr, 2019 10:36 AM

    Ilya Finkelshteyn's Avatar

    Sure you can do that in both YAML or UI, whatever you use. Default folder where AppVeyor build runs (if you do not do any CD commands before) is root of cloned repository, so path to file should be relative with this assumption. Also you can use APPVEYOR_BUILD_FOLDER environment variable while referring the .ps1 file.

  2. Ilya Finkelshteyn closed this discussion on 16 Apr, 2019 10:36 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