Skip to content

Commit 843224a

Browse files
Update nuget.yml
1 parent e7c8814 commit 843224a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/nuget.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
- uses: actions/setup-dotnet@v3
1818
with:
1919
dotnet-version: "8.x"
20-
source-url: https://nuget.pkg.github.com/theeightbot/index.json
21-
env:
22-
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2320

2421
- name: Semver Parse
2522
id: version
@@ -30,7 +27,7 @@ jobs:
3027
- name: Create the package
3128
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer/TychoDB.JsonSerializer.csproj
3229
- name: Publish the package to GPR
33-
run: dotnet nuget push TychoDB.JsonSerializer/bin/Release/*.nupkg
30+
run: dotnet nuget push TychoDB.JsonSerializer/bin/Release/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json
3431
- name: Publish the package to NuGet
3532
run: dotnet nuget push TychoDB.JsonSerializer/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
3633

@@ -39,7 +36,7 @@ jobs:
3936
- name: Create the package
4037
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer.NewtonsoftJson/TychoDB.JsonSerializer.NewtonsoftJson.csproj
4138
- name: Publish the package to GPR
42-
run: dotnet nuget push TychoDB.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg
39+
run: dotnet nuget push TychoDB.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json
4340
- name: Publish the package to NuGet
4441
run: dotnet nuget push TychoDB.JsonSerializer.NewtonsoftJson/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
4542

@@ -48,7 +45,7 @@ jobs:
4845
- name: Create the package
4946
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB.JsonSerializer.SystemTextJson/TychoDB.JsonSerializer.SystemTextJson.csproj
5047
- name: Publish the package to GPR
51-
run: dotnet nuget push TychoDB.JsonSerializer.SystemTextJson/bin/Release/*.nupkg
48+
run: dotnet nuget push TychoDB.JsonSerializer.SystemTextJson/bin/Release/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json
5249
- name: Publish the package to NuGet
5350
run: dotnet nuget push TychoDB.JsonSerializer.SystemTextJson/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
5451

@@ -57,6 +54,6 @@ jobs:
5754
- name: Create the package
5855
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} TychoDB/TychoDB.csproj
5956
- name: Publish the package to GPR
60-
run: dotnet nuget push TychoDB/bin/Release/*.nupkg
57+
run: dotnet nuget push TychoDB/bin/Release/*.nupkg --api-key "${{secrets.GITHUB_TOKEN}}" --source https://nuget.pkg.github.com/theeightbot/index.json
6158
- name: Publish the package to NuGet
6259
run: dotnet nuget push TychoDB/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)