|
32 | 32 | # ${{ steps.release_drafter.outputs.name }}
|
33 | 33 |
|
34 | 34 | ${{ steps.release_drafter.outputs.body }}
|
35 |
| - # run: dotnet test |
36 |
| - run: | # https://github.com/dotnet/sdk/issues/10409, https://github.com/dotnet/sdk/issues/11417 |
| 35 | + run: | |
37 | 36 | # .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
|
38 | 37 | # https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
|
39 | 38 | # ${parameter/pattern/string} If pattern begins with ‘/’, all matches of pattern are replaced with string. Normally only the first match is replaced.
|
@@ -83,18 +82,11 @@ jobs:
|
83 | 82 | - name: Push CI artifacts to GitHub Packages registry
|
84 | 83 | if: github.ref == 'refs/heads/master'
|
85 | 84 | run: |
|
86 |
| - # dotnet nuget push to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775 |
87 |
| - # So someone wrote a .NET Core tool to workaround this: https://github.com/NuGet/Home/issues/9775#issuecomment-660947350 |
88 |
| - # Currently this tool will never return a non-0 exit code: https://github.com/jcansdale/gpr/issues/69 (nice) |
89 |
| - # But we must not include .snupkg files in globbing or a duplicate version error will occur: https://github.com/jcansdale/gpr/issues/83 |
90 |
| - dotnet tool install -g gpr |
91 |
| - gpr push .nupkgs/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} |
92 |
| - |
93 |
| - # Original code before using this tool: |
94 |
| - # # Non-Windows platforms require --store-password-in-clear-text: https://github.com/NuGet/Home/issues/1851 |
95 |
| - # dotnet nuget add source https://nuget.pkg.github.com/verybadcat/index.json -n github -u verybadcat -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text |
96 |
| - # # We use double quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120 |
97 |
| - # dotnet nuget push ".nupkgs/*.nupkg" --source "github" --skip-duplicate --no-symbols # Don't let GitHub Releases interpret .snupkg as .nupkg |
| 85 | + # "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211 |
| 86 | + # So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation |
| 87 | + # We use quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120 |
| 88 | + # --no-symbols to not let GitHub Releases interpret .snupkg as .nupkg |
| 89 | + dotnet nuget push '.nupkgs/*.nupkg' --source 'https://nuget.pkg.github.com/verybadcat/index.json' --api-key ${{ github.token }} --skip-duplicate --no-symbols |
98 | 90 | Ios:
|
99 | 91 | runs-on: macos-latest
|
100 | 92 | steps:
|
|
0 commit comments