Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (34 sloc) 997 Bytes
version: '2.0.{build}'
image: Visual Studio 2017
branches:
only:
- master
- develop
clone_depth: 1
init:
# Good practise, because Windows
- git config --global core.autocrlf true
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
# - ps: Install-Product node $env:nodejs_version
- cd DotNetCoreAngularToAzure
# install npm modules
- ps: Install-Product node $env:nodejs_version
- npm install
- node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod
before_build:
# Display minimal restore text
- cmd: dotnet restore --verbosity m
build_script:
# output will be in ./DotNetCoreAngularToAzure/bin/Release/netcoreapp2.0/publish/
- cmd: dotnet publish -c Release
artifacts:
- path: '\DotNetCoreAngularToAzure\bin\Release\netcoreapp2.0\publish'
name: WebSite
type: WebDeployPackage
#deploy:
# - provider: Environment
# name: Production
# on:
# branch: develop