File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - name : Setup .NET Core
1717 uses : actions/setup-dotnet@v1
1818 with :
19- dotnet-version : " 8.0 .x"
19+ dotnet-version : " 9 .x"
2020 - name : Build with dotnet
2121 run : dotnet build --configuration Release
2222 - name : Test with dotnet
2828 - name : Setup .NET Core
2929 uses : actions/setup-dotnet@v1
3030 with :
31- dotnet-version : " 8.0 .x"
31+ dotnet-version : " 9 .x"
3232 - name : Build with dotnet
3333 run : dotnet build --configuration Release
3434 - name : Test with dotnet
Original file line number Diff line number Diff line change @@ -14,22 +14,22 @@ jobs:
1414 Protobuf.System.Text.Json
1515 ]
1616 steps :
17- - uses : actions/checkout@v1
17+ - uses : actions/checkout@v2 # Updated to v2 for better performance and new features
1818 - name : Setup .NET Core
1919 uses : actions/setup-dotnet@v1
2020 with :
21- dotnet-version : " 8.0 .x"
21+ dotnet-version : " 9 .x"
2222 - name : Create NuGet Package
2323 run : dotnet pack -c Release /p:Version=${{ github.event.release.name }} /p:PackageReleaseNotes="See https://github.com/Havret/Protobuf.System.Text.Json/releases/tag/${{ github.event.release.tag_name }}"
2424 - name : Archive NuGet Package
25- uses : actions/upload-artifact@v1
25+ uses : actions/upload-artifact@v4 # Migrated to v4
2626 with :
2727 name : ${{ matrix.package }}
2828 path : ./src/${{ matrix.package }}/bin/Release/${{ matrix.package }}.${{ github.event.release.name }}.nupkg
2929 - name : Archive NuGet Package With Symbols
30- uses : actions/upload-artifact@v1
30+ uses : actions/upload-artifact@v4 # Migrated to v4
3131 with :
32- name : ${{ matrix.package }}
32+ name : ${{ matrix.package }}-symbols
3333 path : ./src/${{ matrix.package }}/bin/Release/${{ matrix.package }}.${{ github.event.release.name }}.snupkg
3434 - name : Publish NuGet Package
3535 run : dotnet nuget push ./src/${{ matrix.package }}/bin/Release/${{ matrix.package }}.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments