Skip to content

Commit bbfa3e8

Browse files
fix yml
1 parent 8325784 commit bbfa3e8

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/dotnet-core-desktop.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454

5555
# Publish Artifacts
5656
- name: 'Publish Artifacts'
57-
uses: actions/upload-artifact@v1.0.0
57+
uses: actions/upload-artifact@v4.4.0
5858
with:
59-
name: 'artifactory'
59+
name: artifactory_${{ matrix.configuration }}
6060
path: ./Analogy.LogViewer.PlainTextParser/bin/${{ matrix.configuration }}
6161
push-nuget:
6262
name: 'Push NuGet Packages'
@@ -65,27 +65,18 @@ jobs:
6565
runs-on: windows-latest
6666
steps:
6767
- name: 'Download Artifact'
68-
uses: actions/download-artifact@v1
68+
uses: actions/download-artifact@v4.1.7
6969
with:
70-
name: 'artifactory'
70+
name: artifactory_Release
7171
- name: 'Dotnet NuGet Push'
7272
run: |
73-
Get-ChildItem .\artifactory -Filter *.nupkg |
73+
Get-ChildItem ./ -Filter *.nupkg |
7474
Where-Object { !$_.Name.Contains('preview') } |
7575
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
7676
shell: pwsh
7777

7878
- name: Setup NuGet.exe for use with actions
7979
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 }
8980
concurrency:
9081
group: ${{ github.ref }}
9182
cancel-in-progress: true

0 commit comments

Comments
 (0)