diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a83fb6..2256082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,6 @@ name: Publish on: release: types: [published] - push: {} pull_request: {} env: @@ -40,4 +39,5 @@ jobs: run: dotnet pack src\SourceGenerator.Foundations\SourceGenerator.Foundations.csproj -p:Version=${{env.GitVersion_AssemblySemVer}} -p:PackageVersion=${{env.GitVersion_FullSemVer}} # -- Release Only -- - name: Push NuGet + if: github.event_name == 'release' run: dotnet nuget push ${{env.ProjectDir}}bin\${{env.Configuration}}\*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 3d861d5..8f6aa70 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,6 +6,12 @@ SGF true $(MSBuildThisFileDirectory) + $(MSBuildThisFileDirectory)..\img\ + $(MSBuildThisFileDirectory)..\img\icon.png + + $(MSBuildThisFileDirectory)..\img\icon.ico + + $(SGFSourceDir)SourceGenerator.Foundations\ $(SGFProjectDir)SourceGenerator.Foundations.csproj diff --git a/src/Nuget.Build.props b/src/Nuget.Build.props index a28ec08..01a5772 100644 --- a/src/Nuget.Build.props +++ b/src/Nuget.Build.props @@ -5,7 +5,8 @@ ===============================--> Source Generator Foundations - Byron Mayne + Byron Mayne + SgfIcon.png Provides boilerplate code to be used by source generators. Provides the ability to have nuget packages that are resolvable at runtime as well as much better exception handling. https://github.dev/ByronMayne/SourceGenerator.Foundations README.md @@ -21,6 +22,9 @@ + + /$(PackageIcon) + lib/netstandard2.0/SourceGenerator.Foundations.Contracts.dll diff --git a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.csproj b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.csproj index 44e113e..0601463 100644 --- a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.csproj +++ b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.csproj @@ -7,22 +7,13 @@ 11 true $(TargetsForTfmSpecificContentInPackage);CustomNugetPack - icon.ico - icon.png - - - all runtime; build; native; contentfiles; analyzers; buildtransitive - - True - \ - diff --git a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props index 1a4c9c5..c5f3e05 100644 --- a/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props +++ b/src/SourceGenerator.Foundations/SourceGenerator.Foundations.props @@ -21,11 +21,9 @@ - - SGF/%(RecursiveDir)%(Filename)%(Extension)