Skip to content

Commit

Permalink
Bump download-artifact from v1 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Apr 21, 2021
1 parent c02c067 commit 39c714a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ jobs:
runs-on: windows-latest
steps:
- name: 'Download Artefact'
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: 'windows-latest'
- name: 'Dotnet NuGet Add Source'
run: dotnet nuget add source https://nuget.pkg.github.com/RehanSaeed/index.json --name GitHub --username RehanSaeed --password ${{secrets.GITHUB_TOKEN}}
shell: pwsh
- name: 'Dotnet NuGet Push'
run: dotnet nuget push .\windows-latest\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
run: dotnet nuget push .\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
shell: pwsh

push-nuget:
Expand All @@ -86,12 +86,12 @@ jobs:
runs-on: windows-latest
steps:
- name: 'Download Artefact'
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: 'windows-latest'
- name: 'Dotnet NuGet Push'
run: |
Get-ChildItem .\windows-latest -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

0 comments on commit 39c714a

Please sign in to comment.