Azure / Azure/static-web-apps

swa cli task in azuredevops server to publish apps into webapp

Open
#1,192 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

We are trying to use Azure Static Webapp to deploy the Angular apps instead of currently used Azure App Service and looking for the ADO server task to replace the below app service deployment tasks in Azure Devops server.

- bash: |
echo "Running npm lint:"
npm run lint$subProject
echo "Running npm build:"
npm run build$subProject
echo "Running npm test:"
npm run test$subProject

- task: AzureRmWebAppDeployment@4
inputs:
azureSubscription: '$(Subscription)'
appType: webAppLinux
WebAppName: '$(appService)'
deployToSlotOrASE: true
ResourceGroupName: '$(ResourceGroup)'
SlotName: '$(SlotName)'
packageForLinux: '$(Agent.ReleaseDirectory)/my-artifact/$(Build.BuildNumber).zip'
RuntimeStack: NODE|16-lts
StartupCommand: 'pm2 start /home/site/wwwroot/xxxxxx.config.js --no-daemon'

Since "Static Webapp Deployment" task is not supported in Azure Devops server, we have installed SWA CLI in our build agents.

So how can we directly deploy the build pipeline artifacts (`.zip`) files to static webapp using SWA cli in Azure Devops?

In release pipeline how can we replace the deployment command with swa cli ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.