Add NuGet push support to build script #229
This file contains hidden or 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: .NET | |
| on: | |
| push: | |
| branches: [ develop ] | |
| pull_request: | |
| branches: [ develop ] | |
| jobs: | |
| Build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| configuration: [ | |
| Release | |
| ] | |
| solution: [ | |
| Zetian.slnx | |
| ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 11.0.x | |
| dotnet-quality: preview | |
| - name: Restore the Zetian | |
| run: dotnet restore ${{ matrix.solution }} -p:Configuration=${{ matrix.configuration }} --configfile ./NuGet.Config | |
| - name: Build the Zetian | |
| run: dotnet build ${{ matrix.solution }} -c ${{ matrix.configuration }} --no-restore /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003 | |
| - name: Test the Zetian | |
| run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} --no-build --verbosity normal |