Generate NuGet Package #18
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
name: Generate NuGet Package | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
- name: Install dependencies | |
run: dotnet restore src/ZeroRedact | |
- name: Test with dotnet | |
run: dotnet test src/ZeroRedact.UnitTest | |
- name: Create Package | |
run: dotnet pack src/ZeroRedact -c Release -o artifacts/ | |
- name: Upload NuGet Package and symbols to GitHub Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: artifacts/ |