Skip to content

Commit e2b206f

Browse files
committed
Allow upload of nuget packages
1 parent 7f5655d commit e2b206f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ jobs:
5252

5353
- name: Pack NuGet Package (Only for Release and explicit request)
5454
if: startsWith(github.ref, 'refs/tags/v')
55-
run: dotnet pack ReswPlus.sln --configuration Release --no-build --output nupkg
55+
run: dotnet pack src/ReswPlus.SourceGenerator/ReswPlus.SourceGenerator.csproj --configuration Release --no-build --output nupkg
5656

57-
- name: Push to NuGet (Only for Tags or Manual Trigger)
57+
- name: Push NuGet package
5858
if: startsWith(github.ref, 'refs/tags/v')
59-
env:
60-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
61-
run: dotnet nuget push nupkg/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
59+
run: dotnet nuget push "nupkg/*.nupkg" --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate

nuget/ReswPlus.SourceGenerator.NugetPackage.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<FileVersion>0.3.1.2</FileVersion>
4+
<FileVersion>0.3.1.5</FileVersion>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<Title>ReswPlus - Source Generator</Title>
77
<PackageId>ReswPlus</PackageId>
88
<Version>$(FileVersion)</Version>
99
<Authors>Rudy Huyn</Authors>
1010
<Description>ReswPlus - Source Generator for Resw files</Description>
1111
<PackageProjectUrl>https://github.com/reswplus/ReswPlus/</PackageProjectUrl>
12-
<PackageIcon>$(MSBuildThisFileDirectory)Icon.png</PackageIcon>
12+
<PackageIcon>Icon.png</PackageIcon>
1313
<PackageCopyright>Copyright 2025</PackageCopyright>
1414
<PackageTags>dotnet localization resx resw plural pluralization</PackageTags>
1515
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16-
<PackageReadmeFile>$(MSBuildThisFileDirectory)README.md</PackageReadmeFile>
16+
<PackageReadmeFile>README.md</PackageReadmeFile>
1717
<NoWarn>NU5128</NoWarn>
1818
</PropertyGroup>
1919
<ItemGroup>

0 commit comments

Comments
 (0)