1.5.0-rc4 #8
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 | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration Release | |
- name: Test | |
run: dotnet test --no-build --configuration Release --logger trx --results-directory ./test-results/ | |
- name: Package | |
run: dotnet pack --no-build --configuration Release --output ./build-output/ | |
- name: Upload nuget package artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Nuget Packages | |
path: ./build-output/ | |
- name: Publish | |
run: dotnet nuget push "./build-output/*.nupkg" --source nuget.org --api-key ${{ secrets.NUGET_TOKEN }} |