We are using .NET DXA application, and for binary update, we manually upload the zip file and then publish the HTML design. It's a manual process and do the same every time the front end team updates anything in CSS. Can we setup an automated upload and publishing once we drop the zip file to particular folder location? Any suggestions?
Certainly. High level steps how to do this:
- Create a folder watcher which would detect the zip file when copied. Once the zip is detected it would be processed and moved out of the folder (success/failed folders). Processing takes place in steps 2 and 3 below
- Upload the zip using the Stream Core Service
- Publish the HTML design using (regular) Core Service
Steps 1. and 3. are pretty straightforward, for 2. take a look here how to use the stream client. Note that the blog is somewhat old, but the principle is the same. You can make use of the new stream endpoints as well.