Skip to content

Commit 3d12ca3

Browse files
committed
Update build & release scripts
1 parent 0dc1f02 commit 3d12ca3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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
@@ -28,7 +28,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)