Skip to content

Commit

Permalink
@LACHAIN-148 publish artifacts to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Ivashchenko committed Jun 24, 2020
1 parent ac32a45 commit 9906701
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ script:
- dotnet restore
- dotnet build -c Release
#- dotnet test
#- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime linux-x64 src/Lachain.Console/Lachain.Console.csproj
#- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime win-x64 src/Lachain.Console/Lachain.Console.csproj
#- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime osx-x64 src/Lachain.Console/Lachain.Console.csproj
- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime linux-x64 src/Lachain.Console/Lachain.Console.csproj
- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime win-x64 src/Lachain.Console/Lachain.Console.csproj
- dotnet publish -p:Configuration=Release -p:PublishTrimmed=true -p:SelfContained=true -p:PublishSingleFile=true --runtime osx-x64 src/Lachain.Console/Lachain.Console.csproj
- mkdir build
- cp src/Lachain.Console/bin/Release/netcoreapp3.1/linux-x64/publish/Lachain.Console build/
- cp src/Lachain.Console/bin/Release/netcoreapp3.1/osx-x64/publish/Lachain.Console build/
- cp src/Lachain.Console/bin/Release/netcoreapp3.1/win-x64/publish/Lachain.Console.exe build/

deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: build/*
skip_cleanup: true
draft: true
on:
tags: true

0 comments on commit 9906701

Please sign in to comment.