Skip to content

Commit

Permalink
Update gh-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tbm0115 authored Feb 15, 2023
1 parent 675dd9d commit 2336eac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/gh-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
- name: Build with dotnet
run: dotnet build "${{ env.VS_PROJECT }}\${{ env.VS_PROJECT }}.csproj" --configuration Release
- name: Pack NuGet package
run: dotnet pack "${{ env.VS_PROJECT }}\${{ env.VS_PROJECT }}.csproj" -c Release -o ./artifacts --no-build
run: dotnet pack "${{ env.VS_PROJECT }}\${{ env.VS_PROJECT }}.csproj" -c Release -o artifacts --no-build
- name: Publish Artifact
uses: actions/upload-artifact@master
with:
name: nupkg
path: artifacts
- name: Publish NuGet package to GitHub Packages
run: dotnet nuget push ./artifacts/*.nupkg --source ${{ env.NUGET_REGISTRY }}${{ env.NUGET_NAMESPACE }} --api-key ${{ env.NUGET_API_KEY }}
run: dotnet nuget push artifacts\*.nupkg --source ${{ env.NUGET_REGISTRY }}${{ env.NUGET_NAMESPACE }} --api-key ${{ env.NUGET_API_KEY }}

0 comments on commit 2336eac

Please sign in to comment.