From a73e86c38b720dcf985aac7e1025a6ac7cbcbe18 Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Sat, 21 Sep 2024 19:52:35 +0300 Subject: [PATCH] fix yml --- .github/workflows/dotnet-core-desktop.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dotnet-core-desktop.yml b/.github/workflows/dotnet-core-desktop.yml index 7a0435a..19089b5 100644 --- a/.github/workflows/dotnet-core-desktop.yml +++ b/.github/workflows/dotnet-core-desktop.yml @@ -57,9 +57,9 @@ jobs: # Publish Artifacts - name: 'Publish Artifacts' - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v4.4.0 with: - name: 'artifactory' + name: artifactory_${{ matrix.configuration }} path: ./Analogy.LogViewer.JsonParser/bin/${{ matrix.configuration }} push-nuget: name: 'Push NuGet Packages' @@ -68,27 +68,18 @@ jobs: runs-on: windows-latest steps: - name: 'Download Artifact' - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4.1.7 with: - name: 'artifactory' + name: artifactory_Release - name: 'Dotnet NuGet Push' run: | - Get-ChildItem .\artifactory -Filter *.nupkg | + Get-ChildItem ./ -Filter *.nupkg | Where-Object { !$_.Name.Contains('preview') } | ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} } shell: pwsh - name: Setup NuGet.exe for use with actions uses: NuGet/setup-nuget@v1.0.5 - - - name: Add private GitHub registry to NuGet - run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Analogy-LogViewer/index.json -Username Analogy-LogViewer -Password ${{ secrets.GITHUB_TOKEN }} - - - name: 'Dotnet NuGet Push to github registry' - run: | - Get-ChildItem .\artifactory -Filter *.nupkg | - Where-Object { !$_.Name.Contains('preview') } | - ForEach-Object { nuget push $_ -Source "GPR" -SkipDuplicate } concurrency: group: ${{ github.ref }} cancel-in-progress: true