-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bar Nuri
committed
Dec 25, 2021
0 parents
commit d4aef4a
Showing
5 changed files
with
478 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bin | ||
obj | ||
.vs | ||
.toolstarget | ||
**/bin | ||
**/obj | ||
**/.toolstarget | ||
**/sqlite3 | ||
**/.vs | ||
deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.