Prepare ColorSampler 1.0 package #6
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: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore | |
| run: dotnet restore ColorSampler.sln | |
| - name: Build | |
| run: dotnet build ColorSampler.sln -c Release --no-restore | |
| - name: Pack | |
| run: dotnet pack src/ColorSampler/ColorSampler.csproj -c Release --no-build -o artifacts/packages | |
| - name: Upload package artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: colorsampler-packages | |
| path: artifacts/packages/* |