Skip to content

Commit 8d44553

Browse files
package TCP and Embedded Clients
1 parent dfaa09a commit 8d44553

File tree

6 files changed

+59
-18
lines changed

6 files changed

+59
-18
lines changed

Diff for: .config/dotnet-tools.json

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"commands": [
1414
"minver"
1515
]
16+
},
17+
"gpr": {
18+
"version": "0.1.122",
19+
"commands": [
20+
"gpr"
21+
]
1622
}
1723
}
1824
}

Diff for: .github/workflows/ci.yml

+43-9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
tags:
99
- oss-v*
1010

11+
env:
12+
DOTNET_SDK_VERSION: 3.1.201
1113
jobs:
1214
vulnerability-scan:
1315
runs-on: ubuntu-latest
@@ -33,15 +35,15 @@ jobs:
3335
steps:
3436
- name: Checkout
3537
uses: actions/checkout@v2
36-
with:
37-
fetch-depth: 0
38+
- shell: bash
39+
run: |
40+
git fetch --prune --unshallow
3841
- name: Install Dotnet
3942
uses: actions/[email protected]
4043
with:
41-
dotnet-version: '3.1.201'
44+
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
4245
- name: Calculate Version
4346
run: |
44-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4547
dotnet tool restore
4648
version=$(dotnet tool run minver -- --tag-prefix=oss-v)-${{ matrix.container-runtime }}
4749
echo "::set-env name=VERSION::${version}"
@@ -107,16 +109,16 @@ jobs:
107109
steps:
108110
- name: Checkout
109111
uses: actions/checkout@v2
110-
with:
111-
fetch-depth: 0
112+
- shell: bash
113+
run: |
114+
git fetch --prune --unshallow
112115
- name: Install Dotnet
113116
uses: actions/[email protected]
114117
with:
115-
dotnet-version: '3.1.201'
118+
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
116119
- name: Calculate Version
117120
shell: bash
118121
run: |
119-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
120122
dotnet tool restore
121123
version=$(dotnet tool run minver -- --tag-prefix=oss-v)
122124
echo "::set-env name=VERSION::${version}"
@@ -144,4 +146,36 @@ jobs:
144146
if: always()
145147
with:
146148
name: test-results-${{ matrix.configuration }}-${{ matrix.os }}
147-
path: test-results
149+
path: test-results
150+
package:
151+
needs: [vulnerability-scan, build]
152+
strategy:
153+
fail-fast: false
154+
runs-on: ubuntu-latest
155+
name: ci/github/package
156+
steps:
157+
- name: Checkout
158+
uses: actions/checkout@v2
159+
- shell: bash
160+
run: |
161+
git fetch --prune --unshallow
162+
- name: Install Dotnet
163+
uses: actions/[email protected]
164+
with:
165+
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
166+
- name: Pack
167+
shell: bash
168+
run: |
169+
dotnet tool restore
170+
dotnet pack --configuration=Release --output=./packages \
171+
/p:Version=$(dotnet tool run minver -- --tag-prefix=oss-v) \
172+
/p:NoWarn=NU5105 \
173+
/p:RepositoryUrl=https://github.com/EventStore/EventStore \
174+
/p:RepositoryType=git \
175+
./src
176+
- name: Push
177+
shell: bash
178+
if: github.event_name == 'push'
179+
run: |
180+
find . -name "*.nupkg" | xargs -n1 dotnet tool run gpr -- push --api-key=${{ secrets.github_token }}
181+

Diff for: ouro.png

30 KB
Loading

Diff for: src/Directory.Build.props

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
<DebugType Condition=" '$(Configuration)' == 'Release' ">pdbonly</DebugType>
66
<OutputPath>$(MSBuildThisFileDirectory)..\bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
77
<Authors>Event Store Ltd</Authors>
8-
<PackageLicenseUrl>https://github.com/EventStore/EventStore/blob/master/LICENSE.md</PackageLicenseUrl>
8+
<PackageIconUrl>ouro.png</PackageIconUrl>
9+
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
910
<PackageProjectUrl>https://eventstore.com</PackageProjectUrl>
10-
<PackageIconUrl>https://eventstore.com/images/ouro.svg</PackageIconUrl>
1111
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
12-
<Copyright>Copyright 2012-2019 Event Store Ltd</Copyright>
12+
<Copyright>Copyright 2012-2020 Event Store Ltd</Copyright>
1313
<PackageReleaseNotes>https://eventstore.com/blog/</PackageReleaseNotes>
1414
<LangVersion>8.0</LangVersion>
15+
<IsPackable>false</IsPackable>
1516
</PropertyGroup>
17+
<ItemGroup>
18+
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="\"/>
19+
<None Include="..\..\ouro.png" Pack="true" PackagePath="\"/>
20+
</ItemGroup>
1621
</Project>

Diff for: src/EventStore.ClientAPI.Embedded/EventStore.ClientAPI.Embedded.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<PackageId>EventStore.Client.Embedded</PackageId>
1111
<Description>The embedded client API for Event Store. Get the open source or commercial versions of Event Store server from https://eventstore.com/</Description>
1212
<PackageTags>eventstore client embedded</PackageTags>
13+
<IsPackable>true</IsPackable>
1314
</PropertyGroup>
1415
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1516
<DocumentationFile>$(OutputPath)\EventStore.ClientAPI.Embedded.xml</DocumentationFile>

Diff for: src/EventStore.ClientAPI/EventStore.ClientAPI.csproj

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,9 @@
99
<PropertyGroup>
1010
<PackageId>EventStore.Client</PackageId>
1111
<Authors>Event Store Ltd</Authors>
12-
<PackageLicenseUrl>https://github.com/EventStore/EventStore/blob/master/LICENSE.md</PackageLicenseUrl>
13-
<PackageProjectUrl>https://eventstore.com</PackageProjectUrl>
14-
<PackageIconUrl>https://eventstore.com/images/ouro.svg</PackageIconUrl>
15-
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1612
<Description>The client API for Event Store. Get the open source or commercial versions of Event Store server from https://eventstore.com/</Description>
17-
<PackageReleaseNotes>https://eventstore.com/blog/</PackageReleaseNotes>
18-
<Copyright>Copyright 2012-2019 Event Store Ltd</Copyright>
1913
<PackageTags>eventstore client</PackageTags>
14+
<IsPackable>true</IsPackable>
2015
</PropertyGroup>
2116
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2217
<DocumentationFile>$(OutputPath)\EventStore.ClientAPI.xml</DocumentationFile>

0 commit comments

Comments
 (0)