dependencies updated #107
This file contains 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 and publish | |
on: | |
push: | |
branches: | |
- master # Default release branch | |
jobs: | |
publish: | |
name: build, pack & publish | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup MSBuild Path | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1 | |
- name: Restore NuGet Packages | |
run: nuget restore src\Q42.HueApi.sln | |
- name: Build | |
run: msbuild src\Q42.HueApi.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile | |
- name: Publish HueApi | |
run: dotnet nuget push src\HueApi\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish HueApi ColorConverters | |
run: dotnet nuget push src\HueApi.ColorConverters\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish HueApi Entertainment | |
run: dotnet nuget push src\HueApi.Entertainment\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish Q42 HueApi | |
run: dotnet nuget push src\Q42.HueApi\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish Q42 HueApi ColorConverters | |
run: dotnet nuget push src\Q42.HueApi.ColorConverters\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish Q42 HueApi Streaming | |
run: dotnet nuget push src\Q42.HueApi.Streaming\bin\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate |