0
我正在用Appveyor將一個Web應用程序部署到Azure中,但所有組件都使用grunt進行編譯,構建也成功並部署,因此未部署bower_components文件夾並通過grunt生成文件和文件夾。如何使用Appveyor部署編譯元素Azure Web App?
我想念我appveyor.yml上的任何代碼?
shallow_clone: true
# version format
version: 1.1.{build}
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf true
cache:
- packages -> **\packages.config
- Sigma.Website\bower_components -> Sigma.Website\bower.json
- Sigma.Website\node_modules -> Sigma.Website\package.json
install:
- npm install -g grunt-cli 1> nul
before_build:
- ps: .\CreateBuildTxt.ps1
- nuget restore
- cmd: |
cd Sigma.Website
npm install
grunt
cd ..
build:
publish_wap: true
#Deployment configuration
deploy:
- provider: WebDeploy
server: https://sigma.scm.azurewebsites.net:443/msdeploy.axd?site=sigma
website: sigma
username: $sigma
password:
secure: xxxxxx
ntlm: false
remove_files: false
app_offline: false
artifact: Sigma.Website
on:
branch: master
notifications:
- provider: Slack
incoming_webhook: xxxx
channel: '#sigma-dev'
on_build_success: true
on_build_failure: true