This Repo gives you an idea of how to deploy static html website using Azure Devops
Language | Platform | Author |
---|---|---|
HTML | Azure Web App, Virtual Machine | Mohit Gupta |
Create Azure Web App on Azure Portal
Choose service plan
select any Sample HTML/CSS web app . check-in code on githib
This pipeline publish artifacts to release pipeline
# HTML
# Archive your static HTML project and save it with the build record.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(build.sourcesDirectory)'
includeRootFolder: false
- task: PublishBuildArtifacts@1
Run Pipeline and Deploy App to Azure