name: Build

on: [push]


jobs:

  build:
    runs-on: windows-2019
    steps:
    - uses: actions/checkout@v2
    - name: Setup MSBuild.exe
      uses: warrenbuckley/Setup-MSBuild@v1

    - name: Set CI Version
      if: github.ref != 'refs/heads/release'
      run: echo "::set-env name=VersionSuffix::ci${{ github.run_number }}"

    - name: Build
      run: msbuild -t:Restore,Build,Pack -p:Configuration=Release

    - name: Deploy
      if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
      run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}

name: Build

on: [push]


jobs:

  build:
    runs-on: windows-2019
    if: "!contains(github.event.head_commit.message, 'skip-ci')"
    
    steps:
    - uses: actions/checkout@v2
    - name: Setup MSBuild.exe
      uses: warrenbuckley/Setup-MSBuild@v1

    - name: Set CI Version
      if: github.ref != 'refs/heads/release'
      run: echo "::set-env name=VersionSuffix::ci${{ github.run_number }}"

    - name: Build
      run: msbuild -t:Restore,Build,Pack -p:Configuration=Release

    - name: Deploy
      if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
      run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}

Add skip-ci to build condition
Add skip-ci to build condition