Skip to content

Commit f1a491d

Browse files
authored
Update libgit2sharp.yml
try adjust pack
1 parent 9453235 commit f1a491d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/libgit2sharp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)