forked from lijunle/Vsxmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (34 loc) · 1.24 KB
/
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
38
39
40
41
42
43
44
45
version: 0.0.{build}
image:
- Visual Studio 2019
shallow_clone: true
init:
- ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }
platform:
- Any CPU
configuration:
- Release
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
before_build:
- ps: Vsxmd\Test.ps1 -Prepare
build_script:
- dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --verbosity normal --runtime linux-musl-x64
- dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --verbosity normal --runtime linux-x64
- dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --verbosity normal --runtime osx-x64
- dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --verbosity normal --runtime win-x64
- dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --verbosity normal --runtime win-x86
test_script:
- ps: Vsxmd\Test.ps1 -Run
after_test:
- 7z a -r Vsxmd\obj\Vsxmd.zip Vsxmd\bin\Release
- dotnet pack Vsxmd --no-restore --no-build
artifacts:
- path: 'Vsxmd\obj\Vsxmd.zip'
- path: 'Vsxmd\**\*.nupkg'