Skip to content

Commit

Permalink
NuGet push fixes (#273)
Browse files Browse the repository at this point in the history
* new build workflow

* run workflow

* use build

* push all packages

* fixed api key

* push compiled version

* release with fixed nuget push
  • Loading branch information
michielpost authored Mar 15, 2022
1 parent 3e96ab0 commit 075f5be
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 38 deletions.
59 changes: 24 additions & 35 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,27 @@ jobs:
with:
dotnet-version: 6.0.x

- name: publish HueApi on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/HueApi/HueApi.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

- name: publish HueApi.ColorConverters on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/HueApi.ColorConverters/HueApi.ColorConverters.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

- name: publish HueApi.Entertainment on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/HueApi.Entertainment/HueApi.Entertainment.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

- name: publish Q42.HueApi on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/Q42.HueApi/Q42.HueApi.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

- name: publish Q42.HueApi.ColorConverters on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/Q42.HueApi.ColorConverters/Q42.HueApi.ColorConverters.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

- name: publish Q42.HueApi.Streaming on version change
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/Q42.HueApi.Streaming/Q42.HueApi.Streaming.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Package HueApi
run: dotnet build -c Release -o . src/HueApi/HueApi.csproj
- name: Package HueApi.ColorConverters
run: dotnet build -c Release -o . src/HueApi.ColorConverters/HueApi.ColorConverters.csproj
- name: Package HueApi.Entertainment
run: dotnet build -c Release -o . src/HueApi.Entertainment/HueApi.Entertainment.csproj
- name: Package Q42.HueApi
run: dotnet build -c Release -o . src/Q42.HueApi/Q42.HueApi.csproj
- name: Package Q42.HueApi.ColorConverters
run: dotnet build -c Release -o . src/Q42.HueApi.ColorConverters/Q42.HueApi.ColorConverters.csproj
- name: Package Q42.HueApi.Streaming
run: dotnet build -c Release -o . src/Q42.HueApi.Streaming/Q42.HueApi.Streaming.csproj
- name: Publish HueApi
run: dotnet nuget push HueApi.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish HueApi.ColorConverters
run: dotnet nuget push HueApi.ColorConverters.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish HueApi.Entertainment
run: dotnet nuget push HueApi.Entertainment.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish Q42.HueApi
run: dotnet nuget push Q42.HueApi.*.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 Q42.HueApi.ColorConverters.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish Q42.HueApi.Entertainment
run: dotnet nuget push Q42.HueApi.Entertainment.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
2 changes: 1 addition & 1 deletion src/HueApi.ColorConverters/HueApi.ColorConverters.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<Version>0.3.42</Version>
<Version>0.4.42</Version>
<Authors>Michiel Post</Authors>
<Description>For Clip v2 API. Open source library for interaction with the Philips Hue Bridge. Allows you to control your lights from C#.</Description>
<PackageProjectUrl>https://github.com/michielpost/Q42.HueApi</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/HueApi.Entertainment/HueApi.Entertainment.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<Version>1.1.42</Version>
<Version>1.2.42</Version>
<Authors>Michiel Post</Authors>
<Description>For Clip v2 API. Open source library for interaction with the Philips Hue Bridge. Allows you to control your lights from C#.</Description>
<PackageProjectUrl>https://github.com/michielpost/Q42.HueApi</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/HueApi/HueApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<Version>0.3.42</Version>
<Version>0.4.42</Version>
<Authors>Michiel Post</Authors>
<Description>For Clip v2 API. Open source library for interaction with the Philips Hue Bridge. Allows you to control your lights from C#.</Description>
<PackageProjectUrl>https://github.com/michielpost/Q42.HueApi</PackageProjectUrl>
Expand Down

0 comments on commit 075f5be

Please sign in to comment.