forked from Ackara/Plaid.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try fix for nuget via NuGet/Home#8580 (comment)
- Loading branch information
1 parent
c55d6a5
commit ec736fb
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |