-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed publish to GH Pkg
- Loading branch information
Showing
1 changed file
with
5 additions
and
11 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 |
---|---|---|
|
@@ -19,8 +19,10 @@ env: | |
# You can convert this to a build matrix if you need coverage of multiple configuration types. | ||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
BUILD_CONFIGURATION: Release | ||
NUGET_REPO: https://www.myget.org/F/vanara/api/v2/package | ||
NUGET_AUTH_TOKEN: ${{secrets.MYGETAPIKEY}} | ||
#NUGET_REPO: https://www.myget.org/F/vanara/api/v2/package | ||
NUGET_REPO: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | ||
#NUGET_AUTH_TOKEN: ${{secrets.MYGETAPIKEY}} | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -55,15 +57,7 @@ jobs: | |
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: nuget pack ${{env.SOLUTION_PATH}}\Vanara.Library.nuspec | ||
|
||
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
source-url: https://nuget.pkg.github.com/<organization>/index.json | ||
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Publish packages | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
shell: pwsh | ||
#run: Get-ChildItem ${{env.SOLUTION_PATH}} -Include "Vanara.*.nupkg" -Recurse | ForEach-Object -Process { dotnet nuget push $_.FullName -k ${{env.SOLUTION_PATH}} -s ${{env.NUGET_REPO}} } | ||
run: Get-ChildItem ${{env.SOLUTION_PATH}} -Include "Vanara.*.nupkg" -Recurse | ForEach-Object -Process { dotnet nuget push $_.FullName } | ||
run: Get-ChildItem ${{env.SOLUTION_PATH}} -Include "Vanara.*.nupkg" -Recurse | ForEach-Object -Process { dotnet nuget push $_.FullName -k ${{env.NUGET_AUTH_TOKEN}} -s ${{env.NUGET_REPO}} } |