Can you publish only the artifact folder after build using octo pack in visual studio online
Thanks for reaching out. Octopack will always pack and push the contents of your compiled app. If you want to pack something that is not a result of the msbuild run, you can use a nuspec file with
<file> tags to specify any extra files what you want to add to your package. See http://docs.octopusdeploy.com/display/OD/Using+OctoPack
If the Artifact folder is a physical folder on your server, it could be added using a nuspec file as shown on the link above.
Yes I tried that but apparently the octopack is triggered before the publish event and cannot pick up any files from that folder.
Any other alternative options?
You can switch off Octopack (by removing the MSBuild parameters that invoke it) and add another step at the end of your build process that packs and pushes your artifacts folder. For this you’ll need to use Nuget.exe along with a nuspec file.