Skip to content

Commit e7eada1

Browse files
authored
Merge pull request #19 from DanKE123abc/dev
v1.4.2 - ci: 添加NuGet包推送的源URL
2 parents 4833307 + 073f33d commit e7eada1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/myget-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: MyGet Publish
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [ dev ]
67

.github/workflows/nuget-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: NuGet Publish
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches: [ main ]
57

68
permissions:
79
contents: write
@@ -28,7 +30,7 @@ jobs:
2830
- name: Push to NuGet
2931
run: |
3032
$nupkg = Get-ChildItem -Path .\artifacts\*.nupkg | Select-Object -First 1
31-
dotnet nuget push $nupkg.FullName --api-key ${{ secrets.NUGET_API_KEY }}
33+
dotnet nuget push $nupkg.FullName --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
3234
shell: pwsh
3335

3436
- name: Get NuGet package version

0 commit comments

Comments
 (0)