parent
7b089a8260
commit
1449d05810
|
@ -1,17 +0,0 @@
|
||||||
name: Nuget Publish to github
|
|
||||||
on:
|
|
||||||
[workflow_dispatch]
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
name: nuget publish to github packages
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup .NET Core
|
|
||||||
uses: actions/setup-dotnet@v1
|
|
||||||
with:
|
|
||||||
dotnet-version: 3.1.x
|
|
||||||
- name: Pack
|
|
||||||
run: dotnet pack src/RulesEngine/RulesEngine.csproj --configuration Release
|
|
||||||
- name: Publish
|
|
||||||
run: find ./src/RulesEngine/bin/Release -iname "*.nupkg" | xargs dotnet nuget push -s https://nuget.pkg.github.com/microsoft/index.json -k ${{secrets.GITHUB_TOKEN}}
|
|
|
@ -1,49 +0,0 @@
|
||||||
name: Nuget Publish
|
|
||||||
on:
|
|
||||||
[workflow_dispatch]
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
name: build, pack & publish
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup dotnet
|
|
||||||
uses: actions/setup-dotnet@v1
|
|
||||||
with:
|
|
||||||
dotnet-version: 3.1.x
|
|
||||||
|
|
||||||
# Publish
|
|
||||||
- name: publish on version change
|
|
||||||
id: publish_nuget
|
|
||||||
uses: rohith/publish-nuget@v2
|
|
||||||
with:
|
|
||||||
# Filepath of the project to be packaged, relative to root of repository
|
|
||||||
PROJECT_FILE_PATH: src/RulesEngine/RulesEngine.csproj
|
|
||||||
|
|
||||||
# NuGet package id, used for version detection & defaults to project name
|
|
||||||
# PACKAGE_NAME: Core
|
|
||||||
|
|
||||||
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
|
|
||||||
# VERSION_FILE_PATH: Directory.Build.props
|
|
||||||
|
|
||||||
# Regex pattern to extract version info in a capturing group
|
|
||||||
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
|
|
||||||
|
|
||||||
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
|
|
||||||
# VERSION_STATIC: 1.0.0
|
|
||||||
|
|
||||||
# Flag to toggle git tagging, enabled by default
|
|
||||||
# TAG_COMMIT: true
|
|
||||||
|
|
||||||
# Format of the git tag, [*] gets replaced with actual version
|
|
||||||
# TAG_FORMAT: v*
|
|
||||||
|
|
||||||
# API key to authenticate with NuGet server
|
|
||||||
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
|
||||||
|
|
||||||
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
|
|
||||||
# NUGET_SOURCE: https://api.nuget.org
|
|
||||||
|
|
||||||
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
|
|
||||||
# INCLUDE_SYMBOLS: false
|
|
|
@ -330,4 +330,8 @@ ASALocalRun/
|
||||||
.mfractor/
|
.mfractor/
|
||||||
/src/RulesEngine/RulesEngine.sln.licenseheader
|
/src/RulesEngine/RulesEngine.sln.licenseheader
|
||||||
/assets/RulesEnginePackageFile.xml
|
/assets/RulesEnginePackageFile.xml
|
||||||
coveragereport/
|
coveragereport/
|
||||||
|
|
||||||
|
src/**/*.snk
|
||||||
|
|
||||||
|
dist
|
|
@ -0,0 +1,15 @@
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory)]
|
||||||
|
[string] $csprojFilePath,
|
||||||
|
[Parameter(Mandatory)]
|
||||||
|
[string] $signingKey
|
||||||
|
)
|
||||||
|
|
||||||
|
# sign and build the project
|
||||||
|
$directory = Split-Path $csprojFilePath;
|
||||||
|
$signKeyFile = Join-Path $directory "signKey.snk";
|
||||||
|
|
||||||
|
$bytes = [Convert]::FromBase64String($signingKey)
|
||||||
|
[IO.File]::WriteAllBytes($signKeyFile, $bytes)
|
||||||
|
|
||||||
|
dotnet build $csprojFilePath -c Release -p:ContinuousIntegrationBuild=true -p:DelaySign=false -p:AssemblyOriginatorKeyFile=$signKeyFile
|
Binary file not shown.
|
@ -8,4 +8,4 @@ using System.Runtime.InteropServices;
|
||||||
// to COM components. If you need to access a type in this assembly from
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
[assembly: InternalsVisibleTo("RulesEngine.UnitTest")]
|
[assembly: InternalsVisibleTo("RulesEngine.UnitTest, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c15956b2ac0945c55b69a185f5c3e02276693b0a5e42c8a1f08cb24e03dd87d91f9fa09f79b6b7b3aac4df46f2ea4ce4bfa31920bb0aad9f02793ab29de9fbf40f5ba9e347aa8569128459f31da1f6357eabe6e1308ac7c16b87a4d61e8d1785746a57ec67956d2e2454b3c98502a5d5c4a4168133bfaa431207c108efae03aa")]
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
<SignAssembly>True</SignAssembly>
|
||||||
|
<AssemblyOriginatorKeyFile>..\..\signing\RulesEngine-publicKey.snk</AssemblyOriginatorKeyFile>
|
||||||
|
<DelaySign>True</DelaySign>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<SignAssembly>True</SignAssembly>
|
||||||
|
<AssemblyOriginatorKeyFile>..\..\signing\RulesEngine-publicKey.snk</AssemblyOriginatorKeyFile>
|
||||||
|
<DelaySign>True</DelaySign>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AutoFixture" Version="4.17.0" />
|
<PackageReference Include="AutoFixture" Version="4.17.0" />
|
||||||
|
|
Loading…
Reference in New Issue