Replace NUKE build with plain dotnet CLI workflows #49
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: continuous | |
| on: [push] | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| 10.0.x | |
| - name: 'Cache: ~/.nuget/packages' | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: ${{ runner.os }}-nuget- | |
| - name: Restore | |
| run: dotnet restore MudBlazor.ThemeManager.slnx | |
| - name: Verify formatting | |
| run: | | |
| dotnet format whitespace MudBlazor.ThemeManager.slnx --verify-no-changes | |
| dotnet format style MudBlazor.ThemeManager.slnx --verify-no-changes | |
| - name: Build | |
| run: dotnet build MudBlazor.ThemeManager.slnx --configuration Release --no-restore | |
| - name: Pack | |
| run: dotnet pack MudBlazor.ThemeManager.slnx --configuration Release --no-build --output artifacts/packages | |
| - name: 'Publish: packages' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packages | |
| path: artifacts/packages |