File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ jobs:
23
23
run : dotnet restore LibGit2Sharp.sln
24
24
- name : Build
25
25
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)"
26
29
- name : Pack
27
30
run : |
28
31
echo running on branch $(echo ${GITHUB_SHA} | cut -c1-10)
29
32
dotnet pack --include-symbols -c Release LibGit2Sharp.sln
30
33
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
35
35
36
36
- name : Push generated package to GitHub registry
37
37
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