Skip to content

Commit e17ef98

Browse files
committed
Inject version from git tag
1 parent 15dcff7 commit e17ef98

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,6 @@ ASALocalRun/
331331
.mfractor/
332332

333333
# Local History for Visual Studio
334-
.localhistory/
334+
.localhistory/
335+
336+
*.DS_Store

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ env:
77
script:
88
- dotnet build -c Release
99
- dotnet test
10-
- dotnet pack -c Release
10+
before_deploy:
11+
- dotnet pack -c Release -p:Version=$TRAVIS_TAG
1112
deploy:
1213
skip_cleanup: true
1314
provider: script
1415
script: dotnet nuget push /home/travis/build/rsocket/rsocket-net/RSocket.Core/bin/Release/RSocket.Core.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
1516
on:
1617
tags: true
17-
# condition: $TRAVIS_TAG =~ ^(\d+\.)?(\d+\.)?(\*|\d+)$

RSocket.Core/RSocket.Core.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>RSocket</RootNamespace>
66
<LangVersion>latest</LangVersion>
7-
<Version>0.1.0</Version>
87
</PropertyGroup>
98

109
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)