Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 415f096

Browse files
committed
test nuget
1 parent 3c742d5 commit 415f096

File tree

7 files changed

+38
-17
lines changed

7 files changed

+38
-17
lines changed

.github/workflows/dotnet.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: .NET
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ develop, workflow ]
66
pull_request:
77
branches: [ develop ]
88

@@ -35,3 +35,28 @@ jobs:
3535
run: dotnet build --no-restore --configuration Debug
3636
- name: Test 3.1
3737
run: dotnet test Community.Data.OData.Linq.xTests --no-build --verbosity normal --configuration Debug
38+
nuget-alpha:
39+
runs-on: ubuntu-latest
40+
if: github.ref == 'refs/heads/workflow'
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Setup net6.0
44+
uses: actions/setup-dotnet@v2
45+
with:
46+
dotnet-version: 6.0.x
47+
- name: Restore dependencies
48+
run: dotnet restore
49+
- name: Build 6
50+
run: dotnet build --no-restore --configuration Release
51+
- name: Pack Linq
52+
run: dotnet pack .\Community.Data.OData.Linq\Community.OData.Linq.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
53+
- name: Pack Json
54+
run: dotnet pack .\Community.OData.Linq.Json\Community.OData.Linq.Json.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
55+
- name: Pack AspNetCore
56+
run: dotnet pack .\Community.OData.Linq.AspNetCore\Community.OData.Linq.AspNetCore.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
57+
- name: Push Linq
58+
run: echo ${{ github.run_number }}
59+
- name: Push Json
60+
run: echo ${{ secrets.ODATA_NUGET_KEY }}
61+
- name: Push AspNetCore
62+
run: echo ${{ github.run_number }}

Community.Data.OData.Linq.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9CBF15A2-B552-47EB-B2A1-475E4B05A4CA}"
1111
ProjectSection(SolutionItems) = preProject
1212
build.ps1 = build.ps1
13+
Directory.Build.props = Directory.Build.props
1314
docker-compose.yml = docker-compose.yml
1415
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
1516
LICENSE = LICENSE

Community.Data.OData.Linq/Community.OData.Linq.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>sgn.snk</AssemblyOriginatorKeyFile>
7-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
87
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
98
<Authors>IharYakimush</Authors>
109
<PackageLicenseUrl></PackageLicenseUrl>
@@ -15,10 +14,7 @@
1514
<Description>Use OData filter text query in linq expresson for any IQuerable without ASP.NET dependency. Support netstandard2.0</Description>
1615
<Company />
1716
<RepositoryUrl></RepositoryUrl>
18-
<Version>2.1.0</Version>
1917
<NeutralLanguage>en</NeutralLanguage>
20-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
21-
<FileVersion>2.1.0.0</FileVersion>
2218
<PackageReadmeFile>README.md</PackageReadmeFile>
2319
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2420
</PropertyGroup>

Community.OData.Linq.AspNetCore/Community.OData.Linq.AspNetCore.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
6-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
76
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
87
<AssemblyOriginatorKeyFile>sgn.snk</AssemblyOriginatorKeyFile>
98
<Authors>IharYakimush</Authors>
@@ -14,10 +13,7 @@
1413
<PackageReleaseNotes>Significant improvement in query initialization performance. Support ToArrayAsync(), ToListAsync(), and all other provider specific methods. More integration tests for Entity Framework and CosmosDb SQL API. Breaking Changes: net4.5 not suported anymore. Obsolete methods removed (.SelectExpandJsonToken() and .SelectExpandJson()). Setting for default timezone in case of converting DateTimeOffset to DateTime</PackageReleaseNotes>
1514
<Company />
1615
<RepositoryUrl></RepositoryUrl>
17-
<Version>2.1.0</Version>
1816
<NeutralLanguage>en</NeutralLanguage>
19-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
20-
<FileVersion>2.1.0.0</FileVersion>
2117
<PackageReadmeFile>README.md</PackageReadmeFile>
2218
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2319
</PropertyGroup>

Community.OData.Linq.Json/Community.OData.Linq.Json.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>sgn.snk</AssemblyOriginatorKeyFile>
7-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
87
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
98
<Authors>IharYakimush</Authors>
109
<PackageLicenseUrl></PackageLicenseUrl>
@@ -15,10 +14,7 @@
1514
<Description>Json serialization for SelectExpand result</Description>
1615
<Company />
1716
<RepositoryUrl></RepositoryUrl>
18-
<Version>2.1.0</Version>
1917
<NeutralLanguage>en</NeutralLanguage>
20-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
21-
<FileVersion>2.1.0.0</FileVersion>
2218
<PackageReadmeFile>README.md</PackageReadmeFile>
2319
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2420
</PropertyGroup>

Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<VersionPrefix>0</VersionPrefix>
4+
<Version>2.1.$(VersionPrefix)</Version>
5+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
6+
</PropertyGroup>
7+
</Project>
8+

pack.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
dotnet build -c Release
2-
dotnet pack .\Community.Data.OData.Linq\Community.OData.Linq.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
3-
dotnet pack .\Community.OData.Linq.Json\Community.OData.Linq.Json.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
4-
dotnet pack .\Community.OData.Linq.AspNetCore\Community.OData.Linq.AspNetCore.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o .\nupkg
1+
dotnet pack .\Community.Data.OData.Linq\Community.OData.Linq.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:VersionPrefix=0-local -o .\nupkg
2+
dotnet pack .\Community.OData.Linq.Json\Community.OData.Linq.Json.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:VersionPrefix=0-local -o .\nupkg
3+
dotnet pack .\Community.OData.Linq.AspNetCore\Community.OData.Linq.AspNetCore.csproj -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:VersionPrefix=0-local -o .\nupkg

0 commit comments

Comments
 (0)