返回提交历史
Modified
.github/workflows/publish-packages.yml
+7
-2
XFEstudio/XFEExtension.NetCore.AutoPath
改用你妈的GH
cc06a0d
代码差异
1 个文件
+7
-2
@@ -77,14 +77,19 @@ jobs:
77
77
78
78
- name: Publish to GitHub Packages
79
79
shell: pwsh
80
env:
81
GITHUB_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
80
82
run: |
81
83
$packages = Get-ChildItem -Path "${{ env.PACKAGE_OUTPUT_DIR }}" -Filter *.nupkg -File
82
84
if (-not $packages) {
83
85
throw "No .nupkg files found in ${{ env.PACKAGE_OUTPUT_DIR }}"
84
86
}
85
87
86
88
foreach ($package in $packages) {
87
dotnet nuget push $package.FullName --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
89
dotnet nuget push $package.FullName `
90
--source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" `
91
--api-key "$env:GITHUB_PACKAGES_TOKEN" `
92
--skip-duplicate
88
93
}
89
94
90
95
- name: Publish to NuGet.org