Skip to content

Commit

Permalink
fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai-Intuitive committed Sep 21, 2024
1 parent ea75f78 commit 45df57e
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/dotnet-core-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,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.GitHistory/bin/${{ matrix.configuration }}
push-nuget:
name: 'Push NuGet Packages'
Expand All @@ -67,26 +67,17 @@ jobs:
- name: 'Download Artifact'
uses: actions/[email protected]
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/[email protected]

- 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

0 comments on commit 45df57e

Please sign in to comment.