Skip to content

Commit a10cd15

Browse files
committed
NuGet 패키지 푸시 방식을 PowerShell 반복문으로 변경
기존에는 와일드카드로 모든 .nupkg 파일을 한 번에 푸시했으나, PowerShell 반복문을 사용하여 각 패키지를 개별적으로 푸시하도록 수정했습니다. 또한 shell을 pwsh로 명시하여 여러 패키지 파일 푸시 시의 안정성을 높였습니다.
1 parent 179ca0d commit a10cd15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,9 @@ jobs:
3535
working-directory: src
3636

3737
- name: Push to NuGet
38-
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
38+
run: |
39+
foreach ($pkg in Get-ChildItem -Path ./nupkgs -Filter *.nupkg) {
40+
dotnet nuget push $pkg.FullName --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
41+
}
42+
shell: pwsh
3943
working-directory: src

0 commit comments

Comments
 (0)