-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
54 lines (47 loc) · 1.14 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main
always: true
pool:
vmImage: ubuntu-latest
variables:
tmpFolder: 'tmp'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: Use .NET 6
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: Build all solutions
inputs:
command: 'build'
projects: '_src/*.sln'
- task: DotNetCoreCLI@2
displayName: Publishing to $(tmpFolder)
inputs:
command: 'publish'
publishWebProjects: false
projects: '_src/Blog.Builder.sln'
arguments: '-c $(buildConfiguration) -o $(tmpFolder)'
zipAfterPublish: false
modifyOutputPath: false
- task: PowerShell@2
displayName: Running Blog Builder
inputs:
targetType: 'inline'
script: |
Set-Location -Path $(tmpFolder)
dotnet Blog.Builder.dll --workables ../workables --output ../_output
failOnStderr: true
showWarnings: true
- task: AzureStaticWebApp@0
displayName: Push to Azure
inputs:
app_location: '_output/'
skip_app_build: true
azure_static_web_apps_api_token: '$(deployment_token)'