Added GetTemperature() method to determine the color temperature cate… #3
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Restore | |
| run: msbuild Colors.Dev.sln /t:Restore /p:Configuration=Release /p:Platform=x64 | |
| - name: Build | |
| run: msbuild Colors.Dev.sln /m /p:Configuration=Release /p:Platform=x64 | |
| - name: Package | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Force -Path release | Out-Null | |
| Copy-Item "x64/Release/Colors.Dev.dll" -Destination release | |
| Copy-Item "x64/Release/Colors.Dev.lib" -Destination release | |
| Copy-Item "*.h" -Destination release -ErrorAction SilentlyContinue | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release/* |