File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ jobs:
2323 run : dotnet restore LibGit2Sharp.sln
2424 - name : Build
2525 run : dotnet build --no-restore LibGit2Sharp.sln
26+ - name : Short Sha
27+ id : short-sha
28+ run : echo "::set-output name=short_sha::$(echo ${GITHUB_SHA} | cut -c1-10)"
2629 - name : Pack
2730 run : |
2831 echo running on branch $(echo ${GITHUB_SHA} | cut -c1-10)
2932 dotnet pack --include-symbols -c Release LibGit2Sharp.sln
3033 ls ./bin/Packages/Release/
31-
32- - name : Short Sha
33- id : short-sha
34- run : echo "::set-output name=short_sha::$(echo ${GITHUB_SHA} | cut -c1-10)"
34+ mv ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview.nupkg ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{steps.short-sha.outputs.short_sha}}.nupkg
3535
3636 - name : Push generated package to GitHub registry
3737 run : dotnet nuget push ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{steps.short-sha.outputs.short_sha}}.nupkg --source https://nuget.pkg.github.com/dotdevelop --api-key ${{github.token}} --skip-duplicate --no-symbols true
You can’t perform that action at this time.
0 commit comments