File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - main
88 workflow_dispatch : {}
99
10+ permissions :
11+ packages : read
12+
1013env :
1114 DOTNET_VERSION : ' 10.0.x'
15+ NUGET_REGISTRY_URL : https://nuget.pkg.github.com/devpikachu/index.json
16+ NUGET_REGISTRY_USERNAME : devpikachu
1217
1318jobs :
1419 build :
2732 uses : actions/setup-dotnet@v5
2833 with :
2934 dotnet-version : ${{ env.DOTNET_VERSION }}
35+ - name : Add NuGet repository
36+ run : dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
3037 - name : Restore dependencies from cache
3138 uses : actions/cache@v5
3239 with :
Original file line number Diff line number Diff line change 2828 uses : actions/setup-dotnet@v5
2929 with :
3030 dotnet-version : ${{ env.DOTNET_VERSION }}
31+ - name : Add NuGet repository
32+ run : dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
3133 - name : Restore dependencies from cache
3234 uses : actions/cache@v5
3335 with :
4042 - name : Build
4143 run : bash build.sh --target Package --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
4244 - name : Publish
43- run : |
44- dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
45- dotnet nuget push --source github out/*.nupkg
45+ run : dotnet nuget push --source github out/*.nupkg
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ permissions:
88
99env :
1010 DOTNET_VERSION : ' 10.0.x'
11+ NUGET_REGISTRY_URL : https://nuget.pkg.github.com/devpikachu/index.json
12+ NUGET_REGISTRY_USERNAME : devpikachu
1113
1214jobs :
1315 build :
2022 uses : actions/setup-dotnet@v5
2123 with :
2224 dotnet-version : ${{ env.DOTNET_VERSION }}
25+ - name : Add NuGet repository
26+ run : dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
2327 - name : Restore dependencies from cache
2428 uses : actions/cache@v5
2529 with :
Original file line number Diff line number Diff line change 77 - main
88 workflow_dispatch : {}
99
10+ permissions :
11+ packages : read
12+
1013env :
1114 DOTNET_VERSION : ' 10.0.x'
15+ NUGET_REGISTRY_URL : https://nuget.pkg.github.com/devpikachu/index.json
16+ NUGET_REGISTRY_USERNAME : devpikachu
1217
1318jobs :
1419 build :
2126 uses : actions/setup-dotnet@v5
2227 with :
2328 dotnet-version : ${{ env.DOTNET_VERSION }}
29+ - name : Add NuGet repository
30+ run : dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
2431 - name : Restore dependencies from cache
2532 uses : actions/cache@v5
2633 with :
You can’t perform that action at this time.
0 commit comments