【发布时间】:2023-02-25 02:49:38
【问题描述】:
我在 Azure Repos 中有一个名为 DogwoodWebPortal 的 Repo,它有 2 个分支 第一个分支是:主要 第二个分支是:开发
我想创建一个将部署第二个分支的 yaml 管道:开发到 azure 静态 web 应用程序
这是我正在创建的管道,但它给我提供了一个错误
trigger:
branches:
include:
- development
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- script: |
npm install --legacy-peer-deps
displayName: 'Install dependencies'
- task: AzureStaticWebApp@0
inputs:
app_location: 'path/to/DogwoodWebPortal'
app_branch: 'development'
azure_static_web_apps_api_token: '' #not mentioning my api token here , since stackoverflow is public but i'm entering in my pipeline
错误:应用程序目录位置:'path/to/DogwoodWebPortal' 无效。无法检测到此目录。请验证您的部署配置文件反映了您的存储库结构。
【问题讨论】:
标签: azure-devops azure-pipelines-yaml azure-static-web-app