-
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.
Moved to `BlendInteractive.` prefix. Fixed up packaging. Added automated signing / publishing.
- Loading branch information
Showing
12 changed files
with
92 additions
and
51 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 |
---|---|---|
@@ -1,36 +1,43 @@ | ||
name: Update NuGet | ||
name: Build and Publish | ||
|
||
on: [push] | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
|
||
name: Publish Nuget Package | ||
name: Build and Publish Nuget Package | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup .NET Core 2.1 | ||
uses: actions/setup-dotnet@v1 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 2.1.x | ||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.x | ||
- name: Setup .NET Core 5.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: Run Tests | ||
run: | ||
dotnet test "./tests/Blend.ActionQueue.Tests/Blend.ActionQueue.Tests.csproj" | ||
dotnet-version: | | ||
2.1.x | ||
3.1.x | ||
5.0.x | ||
6.0.x | ||
- name: Build Package | ||
run: | ||
dotnet build -c Release "./src/Blend.ActionQueue/Blend.ActionQueue.csproj" | ||
run: | ||
dotnet build -c Release ./src/BlendInteractive.ActionQueue/BlendInteractive.ActionQueue.csproj /p:ContinuousIntegrationBuild=true | ||
- name: Package Release | ||
run: | ||
dotnet pack -c Release --no-build -o out "./src/Blend.ActionQueue/Blend.ActionQueue.csproj" | ||
- name: Publish Nuget to GitHub registry | ||
run: ls .\out\*.nupkg | foreach { dotnet nuget push $_ -s https://nuget.pkg.github.com/blendinteractive/index.json -k $env:GITHUB_TOKEN } | ||
dotnet pack -c Release --no-build -o out ./src/BlendInteractive.ActionQueue/BlendInteractive.ActionQueue.csproj | ||
- name: Retrieve and decode signing cert | ||
run: echo "$CERTIFICATE_BASE64" | base64 --decode > ./cert.p12 | ||
env: | ||
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }} | ||
- name: Sign package | ||
run: dotnet nuget sign ./out/*.nupkg --certificate-path ./cert.p12 --timestamper http://ts.ssl.com --certificate-password "$CERT_PASSWORD" | ||
env: | ||
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }} | ||
- name: Clean up signing cert | ||
run: rm ./cert.p12 | ||
- name: Publish package to Github registry | ||
run: dotnet nuget push ./out/*.nupkg -k "$GITHUB_AUTH_TOKEN" -s 'https://nuget.pkg.github.com/blendinteractive/index.json' | ||
env: | ||
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish package to Nuget public registry | ||
run: dotnet nuget push ./out/*.nupkg -k "$NUGET_AUTH_TOKEN" -s 'https://api.nuget.org/v3/index.json' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} |
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
This file was deleted.
Oops, something went wrong.
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
50 changes: 50 additions & 0 deletions
50
src/BlendInteractive.ActionQueue/BlendInteractive.ActionQueue.csproj
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,50 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
|
||
<PackageId>BlendInteractive.ActionQueue</PackageId> | ||
<Description>A simple, non-durable queue for when you need something like a message queue, but with minimal setup, for small, low-volume messages or actions where persistence is not a requirement.</Description> | ||
|
||
<Version>1.0.1</Version> | ||
<PackageVersion>1.0.1</PackageVersion> | ||
<AssemblyVersion>1.0.1.0</AssemblyVersion> | ||
<FileVersion>1.0.1.0</FileVersion> | ||
|
||
<Authors>Blend Interactive</Authors> | ||
<Company>Blend Interactive</Company> | ||
|
||
<PackageProjectUrl>https://github.com/blendinteractive/Blend.ActionQueue</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/blendinteractive/Blend.ActionQueue.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
|
||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageLicenseFile>License</PackageLicenseFile> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageIconUrl /> | ||
|
||
<PackageReleaseNotes>Initial Release</PackageReleaseNotes> | ||
|
||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\License"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</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
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
2 changes: 1 addition & 1 deletion
2
...eue.Tests/Examples/ExampleGenericQueue.cs → ...eue.Tests/Examples/ExampleGenericQueue.cs
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
2 changes: 1 addition & 1 deletion
2
...ctionQueue.Tests/Examples/ExampleTests.cs → ...ctionQueue.Tests/Examples/ExampleTests.cs
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
2 changes: 1 addition & 1 deletion
2
tests/Blend.ActionQueue.Tests/TestAction.cs → ...teractive.ActionQueue.Tests/TestAction.cs
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
2 changes: 1 addition & 1 deletion
2
...lend.ActionQueue.Tests/TestActionQueue.cs → ...tive.ActionQueue.Tests/TestActionQueue.cs
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