v8.0 #1
Workflow file for this run
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: Release to Nuget | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install SQL Local DB | |
run: ./setup-sqllocaldb.ps1 | |
shell: pwsh | |
- name: Build | |
run: dotnet build ci.slnf --configuration Release | |
- name: Test | |
run: dotnet test ci.slnf --configuration Release --no-build --no-restore | |
- name: Pack | |
run: dotnet pack ci.slnf --configuration Release --no-build --no-restore --output . | |
- name: Push to NuGet | |
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json |