Skip to content

Commit

Permalink
Update build.debug.yml
Browse files Browse the repository at this point in the history
try fix for nuget via NuGet/Home#8580 (comment)
  • Loading branch information
thesuavehog authored Aug 10, 2020
1 parent c55d6a5 commit ec736fb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
uses: actions/[email protected]
with:
dotnet-version: 3.1.301
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install-Module PowerShellGet
run: Install-Module -Name PowerShellGet -Force

Expand Down Expand Up @@ -63,9 +66,11 @@ jobs:
path: ${{ env.PROJECT_BIN }}/${{ env.BUILD_CONFIGURATION }}/*.nupkg
# The desired behavior if no files are found using the provided path.
if-no-files-found: error
- name: Add GitHub NuGet Source
run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -n github -u ${{ github.actor }} -p ${{ github.token }}
#- name: Add GitHub NuGet Source
# run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -n github -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Github Packages
run: dotnet nuget push ${{ env.PROJECT_BIN }}/${{ env.BUILD_CONFIGURATION }}/${{ env.ASSEMBLY_NAME }}.${{ env.ASSEMBLY_VERSION }}.nupkg --source "github"
- name: Remove GitHub NuGet Source
run: dotnet nuget remove source github
run: dotnet nuget push ${{ env.PROJECT_BIN }}/${{ env.BUILD_CONFIGURATION }}/${{ env.ASSEMBLY_NAME }}.${{ env.ASSEMBLY_VERSION }}.nupkg
#run: dotnet nuget push ${{ env.PROJECT_BIN }}/${{ env.BUILD_CONFIGURATION }}/${{ env.ASSEMBLY_NAME }}.${{ env.ASSEMBLY_VERSION }}.nupkg --source "github"
#- name: Remove GitHub NuGet Source
# if: ${{ always() }}
# run: dotnet nuget remove source github

0 comments on commit ec736fb

Please sign in to comment.