Building a Hugo Site and Deploying to Linux using Azure DevOps
Summary (tl;dr)
Building a Hugo site using Azure DevOps and deploying to a Linux server is done by:
- Set up an SSH service connection in Azure DevOps
- Create a pipeline in Azure DevOps. The pipeline will need several steps:
- Install Hugo
- Build the site
- Deploy the built site
Setting up an SSH Service Connection in Azure DevOps
An SSH service connection is what will allow your hosted Azure DevOps agent to connect to your Linux based server using SSH. Service connections can be found under the Project Settings, on the bottom left side of the UI:
Continue Reading