Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bar Nuri committed Dec 25, 2021
0 parents commit d4aef4a
Show file tree
Hide file tree
Showing 5 changed files with 478 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/nugetPackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Nuget Package
on:
# push:
# branches:
# - master
# pull_request:
# types: [closed]
# branches:
# - master
release:
types: [published]

jobs:
build:
runs-on: ubuntu-20.04
name: Update NuGet package
steps:
- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .Net
uses: actions/setup-dotnet@v1

- name: Build & Packing
env:
releaseVersion: ${{ github.event.release.tag_name }}
repoUrl: ${{ github.server_url }}/${{ github.repository }}
run: |
echo "pack version $releaseVersion"
dotnet restore
dotnet build -c Release
dotnet pack /p:Version="$releaseVersion" /p:RepositoryUrl="$repoUrl" -c Release -o deploy
- name: Publish Nuget Package
env:
nugetToken: ${{secrets.NUGET_AUTH_TOKEN}}
nugetSource: https://api.nuget.org/v3/index.json
# nugetToken: ${{secrets.GITHUB_TOKEN}}
# nugetSource: https://nuget.pkg.github.com/csharp-extensions/index.json
run: |
ls -l deploy
dotnet nuget push ./deploy/*.nupkg --skip-duplicate --no-symbols true -k $nugetToken --source $nugetSource
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bin
obj
.vs
.toolstarget
**/bin
**/obj
**/.toolstarget
**/sqlite3
**/.vs
deploy
17 changes: 17 additions & 0 deletions CSharpExtensions.OpenSource.Mongo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>9</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CSharpExtensions.OpenSource" Version="1.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="MongoDB.Bson" Version="2.14.1" />
<PackageReference Include="MongoDB.Driver" Version="2.14.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions CSharpExtensions.OpenSource.Mongo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.31911.260
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpExtensions.OpenSource.Mongo", "CSharpExtensions.OpenSource.Mongo.csproj", "{A4EE2803-62E1-4074-84FA-0D7B2744C053}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4EE2803-62E1-4074-84FA-0D7B2744C053}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {40307425-08BE-4CBF-A8FE-C40C460C4891}
EndGlobalSection
EndGlobal
Loading

0 comments on commit d4aef4a

Please sign in to comment.