Skip to content

Commit

Permalink
Merge pull request #8 from trustpilot/build-self-contained-dotnet-cor…
Browse files Browse the repository at this point in the history
…e-artifacts

Build self contained dotnet core artifacts
  • Loading branch information
Andreas Sion authored Oct 18, 2019
2 parents e789e8d + 375e3e0 commit fc8e033
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '{build}'
version: "{build}"

image: Visual Studio 2017

Expand All @@ -17,11 +17,11 @@ before_build:
skip_tags: true

after_build:
- dotnet publish Aem -c Release --output %APPVEYOR_BUILD_FOLDER%\published
- 7z a Aem-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\published\*
- for %%x in (win-x64 win-x86 win-arm win-arm64 linux-x64 linux-arm osx-x64) do (dotnet publish Aem -c Release -o %APPVEYOR_BUILD_FOLDER%\published-%%x --self-contained -r %%x)
- for %%x in (win-x64 win-x86 win-arm win-arm64 linux-x64 linux-arm osx-x64) do (7z a Aem-%%x-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\published-%%x\*)

artifacts:
- path: Aem-v%APPVEYOR_BUILD_VERSION%.zip
- path: Aem-*-v%APPVEYOR_BUILD_VERSION%.zip

deploy:
release: Aem-v$(appveyor_build_version)
Expand Down

0 comments on commit fc8e033

Please sign in to comment.