Skip to content

Commit 78a9f28

Browse files
authored
Update libgit2sharp.yml
1 parent ef47336 commit 78a9f28

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/libgit2sharp.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ jobs:
2828
echo running on branch ${GITHUB_REF##*/}
2929
dotnet pack --include-symbols -c Release LibGit2Sharp.sln
3030
ls ./bin/Packages/Release/
31+
- name: Short Sha
32+
id: short_sha
33+
env:
34+
SHORT_SHA: ${{ GITHUB_REF##*/ }}
3135
- name: Create Release
3236
id: create_release
3337
uses: actions/create-release@v1
34-
env: |
35-
SHORT_SHA: ${GITHUB_REF##*/}
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3740
with:
3841
tag_name: ${{ github.ref }}
3942
release_name: Release ${{ github.ref }}
@@ -46,8 +49,8 @@ jobs:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4750
with:
4851
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
49-
asset_path: ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{ SHORT_SHA }}.nupkg
50-
asset_name: LibGit2Sharp.0.27.0-preview-g${{ SHORT_SHA }}.nupkg
52+
asset_path: ./bin/Packages/Release/LibGit2Sharp.0.27.0-preview-g${{ github.sha }}.nupkg
53+
asset_name: LibGit2Sharp.0.27.0-preview-g${{ github.sha }}.nupkg
5154
asset_content_type: application/nupkg
5255

5356
test:

0 commit comments

Comments
 (0)