Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- run: dotnet build --configuration Release /p:Version=${VERSION}
- run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
- run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
- run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://nuget.pkg.github.com/podimo/index.json --api-key ${GITHUB_TOKEN}
- run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_KEY: ${{ secrets.NUGET_KEY }}
- uses: softprops/action-gh-release@v1
with:
files: Podimo.ConstEmbed.${VERSION}.nupkg
generate_release_notes: true
5 changes: 5 additions & 0 deletions src/Podimo.ConstEmbed/Podimo.ConstEmbed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<PackageId>Podimo.ConstEmbed</PackageId>
<PackageTags>Source Generators;Source Generator;Incremental;Embedding;Constants;Constant;Const</PackageTags>
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>1.0.0</Version>
<Authors>Podimo</Authors>
<Company>Podimo</Company>
<Copyright>Copyright (c) Podimo 2022</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/podimo/Podimo.ConstEmbed</RepositoryUrl>
<Title>Podimo.ConstEmbed - Compile-time file embedding as string constants.</Title>
Expand All @@ -29,6 +31,9 @@
</PropertyGroup>

<ItemGroup>
<!-- README File -->
<None Include="../../README.md" Pack="true" PackagePath="/"/>

<!-- Package the generator in the analyzer directory of the nuget package -->
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>

Expand Down