54
54
55
55
# Publish Artifacts
56
56
- name : ' Publish Artifacts'
57
- uses : actions/upload-artifact@v1.0 .0
57
+ uses : actions/upload-artifact@v4.4 .0
58
58
with :
59
- name : ' artifactory '
59
+ name : artifactory_${{ matrix.configuration }}
60
60
path : ./Analogy.LogViewer.PlainTextParser/bin/${{ matrix.configuration }}
61
61
push-nuget :
62
62
name : ' Push NuGet Packages'
@@ -65,27 +65,18 @@ jobs:
65
65
runs-on : windows-latest
66
66
steps :
67
67
- name : ' Download Artifact'
68
- uses : actions/download-artifact@v1
68
+ uses : actions/download-artifact@v4.1.7
69
69
with :
70
- name : ' artifactory '
70
+ name : artifactory_Release
71
71
- name : ' Dotnet NuGet Push'
72
72
run : |
73
- Get-ChildItem .\artifactory -Filter *.nupkg |
73
+ Get-ChildItem ./ -Filter *.nupkg |
74
74
Where-Object { !$_.Name.Contains('preview') } |
75
75
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
76
76
shell : pwsh
77
77
78
78
- name : Setup NuGet.exe for use with actions
79
79
uses : NuGet/setup-nuget@v1.0.5
80
-
81
- - name : Add private GitHub registry to NuGet
82
- run : nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Analogy-LogViewer/index.json -Username Analogy-LogViewer -Password ${{ secrets.GITHUB_TOKEN }}
83
-
84
- - name : ' Dotnet NuGet Push to github registry'
85
- run : |
86
- Get-ChildItem .\artifactory -Filter *.nupkg |
87
- Where-Object { !$_.Name.Contains('preview') } |
88
- ForEach-Object { nuget push $_ -Source "GPR" -SkipDuplicate }
89
80
concurrency :
90
81
group : ${{ github.ref }}
91
82
cancel-in-progress : true
0 commit comments