1.7.16.0 - resolve nullable issue #24
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
# modified to always make a release build, and do a nuget push when on master branch. | |
name: .NET | |
on: | |
push: | |
branches: [ "develop", "release", "master" ] | |
defaults: | |
run: | |
working-directory: src/BOG.SwissArmyKnife | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: | | |
dotnet build --no-restore -c release BOG.SwissArmyKnife.csproj | |
- name: NuGet package publish | |
if: github.event.ref == 'refs/heads/master' | |
env: | |
NGKEY: ${{ secrets.NUGET_API_KEY }} | |
NGSRC: ${{ vars.NUGET_SOURCE }} | |
run: | | |
dotnet nuget push ./bin/release/BOG.SwissArmyKnife.*.nupkg --api-key ${NGKEY} --source ${NGSRC} --skip-duplicate |