Closed RenanCarlosPereira closed 4 months ago
@abbasc52 could you please check this PR? If I'm not asking too much.
I generated a new sign key, we will add it to GitHub secrets, so to generate the package we decided to automate in this PR
@asulwer please add the required secrets in the repo settings
@RenanCarlosPereira both keys have been created and added.
@abbasc52 would you like to be added as a contributor?
Nice, set up the build and then create the tag, it should trigger the build automatically and generate the nuget and release 🙌
quick question though about nuget. i released under RulesEngineEx and the latest unlisted version is 6.0.3. will there be issues publishing?
silly question, i need to merge this before i build and tag?
Merge and then create the tag
Overview
This pull request introduces a GitHub Actions workflow to automate the process of building, signing, packaging, and publishing our .NET project as a NuGet package. Additionally, it creates a GitHub release with the NuGet package and source code archives attached whenever a new tag following the
v*.*.*
pattern is pushed.Changes Implemented
PowerShell Script for Signing and Building:
build-signed.ps1
to handle the signing and building of the project..csproj
file and a base64-encoded signing key as parameters..snk
file and places it in the same directory as the.csproj
file.GitHub Actions Workflow:
.github/workflows/dotnetcore-release.ymll
to automate the following steps:dotnet restore
.build-signed.ps1
script to sign and build the project.dotnet nuget push
command.softprops/action-gh-release@v1
action to create a GitHub release with the NuGet package and source code archives attached.Secrets Management
Benefits
Instructions for Reviewers
build-signed.ps1
for correctness and security..github/workflows/dotnetcore-release.ymll
.SIGNING_KEY
andNUGET_API_KEY
) are added to the repository's secrets.How to Test
v*.*.*
pattern to trigger the workflow.this is related to the issue #42