Skip to content

Commit d4aef4a

Browse files
author
Bar Nuri
committed
Init
0 parents  commit d4aef4a

File tree

5 files changed

+478
-0
lines changed

5 files changed

+478
-0
lines changed

.github/workflows/nugetPackage.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Nuget Package
2+
on:
3+
# push:
4+
# branches:
5+
# - master
6+
# pull_request:
7+
# types: [closed]
8+
# branches:
9+
# - master
10+
release:
11+
types: [published]
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-20.04
16+
name: Update NuGet package
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v1
20+
21+
- name: Setup .Net
22+
uses: actions/setup-dotnet@v1
23+
24+
- name: Build & Packing
25+
env:
26+
releaseVersion: ${{ github.event.release.tag_name }}
27+
repoUrl: ${{ github.server_url }}/${{ github.repository }}
28+
run: |
29+
echo "pack version $releaseVersion"
30+
dotnet restore
31+
dotnet build -c Release
32+
dotnet pack /p:Version="$releaseVersion" /p:RepositoryUrl="$repoUrl" -c Release -o deploy
33+
34+
- name: Publish Nuget Package
35+
env:
36+
nugetToken: ${{secrets.NUGET_AUTH_TOKEN}}
37+
nugetSource: https://api.nuget.org/v3/index.json
38+
# nugetToken: ${{secrets.GITHUB_TOKEN}}
39+
# nugetSource: https://nuget.pkg.github.com/csharp-extensions/index.json
40+
run: |
41+
ls -l deploy
42+
dotnet nuget push ./deploy/*.nupkg --skip-duplicate --no-symbols true -k $nugetToken --source $nugetSource

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bin
2+
obj
3+
.vs
4+
.toolstarget
5+
**/bin
6+
**/obj
7+
**/.toolstarget
8+
**/sqlite3
9+
**/.vs
10+
deploy
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<LangVersion>9</LangVersion>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="CSharpExtensions.OpenSource" Version="1.0.0" />
11+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
12+
<PackageReference Include="MongoDB.Bson" Version="2.14.1" />
13+
<PackageReference Include="MongoDB.Driver" Version="2.14.1" />
14+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
15+
</ItemGroup>
16+
17+
</Project>

CSharpExtensions.OpenSource.Mongo.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.31911.260
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpExtensions.OpenSource.Mongo", "CSharpExtensions.OpenSource.Mongo.csproj", "{A4EE2803-62E1-4074-84FA-0D7B2744C053}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {40307425-08BE-4CBF-A8FE-C40C460C4891}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)