Bump JetBrains.Annotations from 2023.2.0 to 2023.3.0 #50
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": "CI (Build and Package)", | |
"on": { | |
"workflow_dispatch": null, | |
"push": { | |
"branches": ["main"] | |
}, | |
"pull_request": { | |
"branches": ["main"] | |
}, | |
"release": { | |
"types": ["created"] | |
} | |
}, | |
"defaults": { | |
"run": { | |
"shell": "pwsh" | |
} | |
}, | |
"jobs": { | |
"build": { | |
"strategy": { | |
"matrix": { | |
"configuration": ["Release"] | |
} | |
}, | |
"runs-on": "windows-latest", | |
"env": { | |
"NUGET_PACKAGES": "${{ github.workspace }}/.nuget/packages" | |
}, | |
"steps": [ | |
{ | |
"name": "Checkout", | |
"uses": "actions/[email protected]" | |
}, | |
{ | |
"name": "Setup .NET SDK", | |
"uses": "actions/[email protected]", | |
"with": { | |
"dotnet-version": "7.0.x" | |
} | |
}, | |
{ | |
"uses": "actions/cache@v3", | |
"with": { | |
"path": "${{ env.NUGET_PACKAGES }}", | |
"key": "${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}", | |
"restore-keys": "${{ runner.os }}-nuget-" | |
} | |
}, | |
{ | |
"name": "Restore NuGet packages", | |
"run": "dotnet restore --locked-mode" | |
}, | |
{ | |
"name": "Set version suffix to alpha-${{ github.run_number }}", | |
"if": "github.event_name != 'release' || github.event.action != 'created'", | |
"run": "'VERSION_SUFFIX=alpha-${{ github.run_number }}' >> $env:GITHUB_ENV" | |
}, | |
{ | |
"name": "Build", | |
"run": "dotnet build EngageSoftware.Dnn.Logging.sln --no-restore --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }}" | |
}, | |
{ | |
"name": "Package", | |
"run": "dotnet pack EngageSoftware.Dnn.Logging.sln --no-build --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }} --output dist/" | |
}, | |
{ | |
"name": "Upload build artifacts", | |
"uses": "actions/[email protected]", | |
"with": { | |
"path": "dist/" | |
} | |
}, | |
{ | |
"name": "Push packages to NuGet", | |
"run": "dotnet nuget push (Get-Item dist/*.nupkg).FullName --api-key ${{ secrets.NUGET_PUSH_KEY }}" | |
} | |
] | |
} | |
} | |
} |