forked from anderskaplan/Pseudolocalizer
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extend the build workflow to output the NuGet package name and version and then dispatch a `nuget_packages_published` event when the NuGet package is published to NuGet.org. - Pin the version of dotnet-validate used.
- Loading branch information
1 parent
e8c6d26
commit 6f8aea3
Showing
5 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-validate": { | ||
"version": "0.0.1-preview.304", | ||
"commands": [ | ||
"dotnet-validate" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project> | ||
<Target Name="SetNuGetPackageOutputs" AfterTargets="Pack" Condition=" '$(GITHUB_OUTPUT)' != '' "> | ||
<PropertyGroup> | ||
<_PackageNamesPath>$(ArtifactsPath)\package-names.txt</_PackageNamesPath> | ||
</PropertyGroup> | ||
<ReadLinesFromFile File="$(_PackageNamesPath)"> | ||
<Output TaskParameter="Lines" ItemName="_PackageNames" /> | ||
</ReadLinesFromFile> | ||
<ItemGroup> | ||
<_PackageNames Include="$(PackageId)" /> | ||
</ItemGroup> | ||
<RemoveDuplicates Inputs="@(_PackageNames)"> | ||
<Output TaskParameter="Filtered" ItemName="_UniquePackageNames" /> | ||
</RemoveDuplicates> | ||
<WriteLinesToFile File="$(_PackageNamesPath)" Lines="@(_UniquePackageNames)" Overwrite="true" WriteOnlyWhenDifferent="true" /> | ||
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="package-names=@(_UniquePackageNames->'%(Identity)', ',')" /> | ||
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="package-version=$(Version)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters