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 cc5a364 commit 17bbec8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/dotnet-core-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:

# Publish Artifacts
- name: 'Publish Artifacts'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: 'artifactory'
name: artifactory_${{ matrix.configuration }}
path: ./Analogy.AspNetCore.LogProvider\bin/${{ matrix.configuration }}

push-nuget:
Expand All @@ -62,9 +62,9 @@ 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 |
Expand All @@ -74,16 +74,6 @@ jobs:

- 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

0 comments on commit 17bbec8

Please sign in to comment.