Skip to content

Commit

Permalink
Merge pull request #223 from blizzard-net/packaging-fixes
Browse files Browse the repository at this point in the history
Fixed issues with NuGet packages
  • Loading branch information
danjagnow authored Apr 26, 2024
2 parents b7108d5 + 6f5e95d commit 7a0cdb4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
with:
name: NuGet packages
path: |
artifacts/*.nupkg
artifacts/*.snupkg
artifacts/package/release/*.nupkg
artifacts/package/release/*.snupkg
- name: Push NuGet packages to NuGet
if: ${{ startsWith(github.ref, 'refs/tags/v') }} # Only for a tag
run: dotnet nuget push "artifacts/**.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push "artifacts/package/release/**.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json

- name: Create GitHub Release
if: ${{ startsWith(github.ref, 'refs/tags/v') }} # Only for a tag
Expand Down
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<Authors>Dan Jagnow, William Wolfram, and Travis Boatman</Authors>
<Copyright>Copyright © 2017-2024 The ArgentPonyWarcraftClient Contributors</Copyright>
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
<DefaultArtifactsFileMatch>*.nupkg *.snupkg</DefaultArtifactsFileMatch>
<UseArtifactsOutput>true</UseArtifactsOutput>
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
</ItemGroup>

<ItemGroup Label="Global package references">
<GlobalPackageReference Include="Microsoft.Build.Artifacts" Version="6.1.10" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Description>Extensions of Microsoft.Extensions.DependencyInjection for the Argent Pony .NET client.</Description>
<Title>Argent Pony Warcraft Client Dependency Injection</Title>
<PackageTags>Warcraft;World-of-Warcraft;WoW;Blizzard;Dependency-Injection;DI</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>ArgentPony.png</PackageIcon>
<LangVersion>10</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Description>The Argent Pony .NET client for the Blizzard World of Warcraft Game Data and Profile APIs</Description>
<Title>Argent Pony Warcraft Client</Title>
<PackageTags>Warcraft;World-of-Warcraft;WoW;Blizzard</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>ArgentPony.png</PackageIcon>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down

0 comments on commit 7a0cdb4

Please sign in to comment.