File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
1010
1111jobs :
1212 build-and-pack :
13- name : Build & Release Assets
13+ name : Build & Release
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
2929 run : dotnet restore SlideGenerator.Framework.csproj
3030
3131 - name : Pack
32- run : dotnet pack SlideGenerator.Framework.csproj -c Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} -o artifacts/nuget
32+ run : >
33+ dotnet pack SlideGenerator.Framework.csproj
34+ -c Release
35+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
36+ -o artifacts/nuget
3337
3438 - name : Publish DLL
3539 run : dotnet publish SlideGenerator.Framework.csproj -c Release -o artifacts/bin
6468 with :
6569 dotnet-version : " 10.0.x"
6670
71+ - name : Add GitHub NuGet source
72+ run : |
73+ dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \
74+ --name github \
75+ --username ${{ github.repository_owner }} \
76+ --password ${{ secrets.NUGET_GITHUB_PAT }} \
77+ --store-password-in-clear-text
78+
6779 - name : Publish to GitHub Packages
68- run : dotnet nuget push "artifacts/nuget/*.nupkg" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
80+ run : >
81+ dotnet nuget push "artifacts/nuget/*.nupkg"
82+ --source github
83+ --api-key ${{ secrets.NUGET_GITHUB_PAT }}
84+ --skip-duplicate
6985
7086 push-nuget :
7187 name : Push to NuGet.org
86102 - name : Publish to NuGet.org
87103 env :
88104 NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
89- run : dotnet nuget push "artifacts/nuget/*.nupkg" --api-key $NUGET_API_KEY --source "https://api.nuget.org/v3/index.json" --skip-duplicate
105+ run : >
106+ dotnet nuget push "artifacts/nuget/*.nupkg"
107+ --api-key $NUGET_API_KEY
108+ --source "https://api.nuget.org/v3/index.json"
109+ --skip-duplicate
You can’t perform that action at this time.
0 commit comments