Support for SE1050 - Exhaustive Switch expressions/statements #32
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: Publish Project | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore ./src | |
- name: Build | |
run: dotnet build ./src -c Release --no-restore | |
- name: Create Nuget Package - Analyzers | |
run: dotnet pack -c Release --version-suffix '' /p:Version=${{github.event.release.tag_name}} /p:PackageReleaseNotes="See https://github.com/ShaharPrishMSFT/SubtleEngineering/releases/tag/${{github.event.release.tag_name}}" ./src/SubtleEngineering.Analyzers | |
- name: Create Nuget Package - Decorators | |
run: dotnet pack -c Release --version-suffix '' /p:Version=${{github.event.release.tag_name}} /p:PackageReleaseNotes="See https://github.com/ShaharPrishMSFT/SubtleEngineering/releases/tag/${{github.event.release.tag_name}}" ./src/SubtleEngineering.Analyzers.Decorators | |
- name: Archive Nuget Package for Project | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: "./src/**/bin/Release/*.nupkg" | |
- name: Publish Nuget Package | |
run: dotnet nuget push ./src/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate | |