Skip to content

Commit 7040790

Browse files
authored
🐛 fix: Use Repository Name instead of Repository (#54)
1 parent 3bfb0b4 commit 7040790

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/tag-creates-nuget-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: NuGet/setup-nuget@v2.0.0
4040

4141
- name: Restore NuGet
42-
run: nuget restore ${{ github.repository }}/${{ github.repository }}.csproj
42+
run: nuget restore ${{ github.repository.name }}/${{ github.repository.name }}.csproj
4343

4444
- name: Get Version without Prefix/Suffix
4545
id: getVer
@@ -54,15 +54,15 @@ jobs:
5454
return simple
5555
5656
- name: Pack NuGet Package [${{ steps.getVer.outputs.result }}]
57-
run: dotnet pack ${{ github.repository }}/${{ github.repository }}.csproj -p:Version='${{ steps.getVer.outputs.result }}' -c Release
57+
run: dotnet pack ${{ github.repository.name }}/${{ github.repository.name }}.csproj -p:Version='${{ steps.getVer.outputs.result }}' -c Release
5858

5959
- name: List
60-
run: ls ${{ github.repository }}/bin/Release
60+
run: ls ${{ github.repository.name }}/bin/Release
6161

6262
- name: Push Package to NuGet & GitHub Packages
6363
shell: powershell
6464
run: |
65-
$files = gci -File "${{ github.repository }}/bin/Release/*.nupkg"
65+
$files = gci -File "${{ github.repository.name }}/bin/Release/*.nupkg"
6666
foreach ($file in $files)
6767
{
6868
echo "Pushing NuGet Package: $file"
@@ -73,9 +73,9 @@ jobs:
7373
- name: Release [${{ github.ref_name }}]
7474
uses: ncipollo/release-action@v1.14.0
7575
with:
76-
name: ${{ github.repository }} ${{ steps.getVer.outputs.result }}
76+
name: ${{ github.repository.name }} ${{ steps.getVer.outputs.result }}
7777
tag: ${{ github.ref_name }}
78-
artifacts: "${{ github.repository }}/bin/Release/*.nupkg"
78+
artifacts: "${{ github.repository.name }}/bin/Release/*.nupkg"
7979
generateReleaseNotes: true
8080

8181
- name: ${{ format('Published NuGet Package [{0}]', steps.getVer.outputs.result) }}

0 commit comments

Comments
 (0)