-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
37 lines (30 loc) · 845 Bytes
/
appveyor.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
image: Visual Studio 2022
configuration: Release
#platform: Any CPU
before_build:
- cmd: nuget restore src/HomeInventoryWebApi.sln
build:
project: src/HomeInventoryWebApi.sln
publish_wap: true
verbosity: minimal
after_build:
- ps: >-
If ($env:APPVEYOR_REPO_BRANCH -eq "master" -Or $env:APPVEYOR_REPO_BRANCH -eq "staging") {
Write-Host "Starting publish"
dotnet publish --self-contained -r win-x86 -o publish/WebBlazor -c Release src\Presentation\WebBlazor/WebBlazor.csproj
7z a WebBlazor.zip .\publish\WebBlazor\*
appveyor PushArtifact WebBlazor.zip
}
Else
{
Write-Host $env:APPVEYOR_REPO_BRANCH
}
deploy:
- provider: Environment
name: Stok - Test
on:
branch: staging
- provider: Environment
name: Stok - LIVE
on:
branch: master