Merge pull request #116 from cairoshell/handle-cloak-event #281
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: ManagedShell | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: [ '.github/**' ] | |
pull_request: | |
branches: [ master ] | |
paths-ignore: [ '.github/**' ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
buildconfig: [ Release ] | |
runs-on: windows-latest | |
env: | |
project: src\ManagedShell\ManagedShell.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install nbgv | |
uses: dotnet/[email protected] | |
- name: Build | |
run: dotnet build $env:project -c $env:config --disable-parallel | |
env: | |
config: ${{ matrix.buildconfig }} | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ManagedShell nupkg | |
path: '**\*.nupkg' | |
- name: Publish to NuGet | |
if: matrix.buildconfig == 'Release' && github.event_name == 'push' | |
run: dotnet nuget push **\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate |