Skip to content

Commit 1acecda

Browse files
committed
CI: Update for .NET 10; Bump actions and node version
1 parent fe111cb commit 1acecda

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
shell: pwsh
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v5
3535
with:
3636
fetch-depth: 0
3737
submodules: 'recursive'
@@ -45,9 +45,9 @@ jobs:
4545
4646
# Required for C#10 features.
4747
- name: Setup Node.js
48-
uses: actions/setup-node@v4
48+
uses: actions/setup-node@v6
4949
with:
50-
node-version: '14'
50+
node-version: '20'
5151

5252
- name: Setup MSVC
5353
uses: ilammy/msvc-dev-cmd@v1
@@ -59,24 +59,29 @@ jobs:
5959
run: npm install -g auto-changelog
6060

6161
- name: Setup Dotnet SDK (5.0)
62-
uses: actions/setup-dotnet@v4
62+
uses: actions/setup-dotnet@v5
6363
with:
6464
dotnet-version: '5.0.x'
6565

6666
- name: Setup Dotnet SDK (7.0)
67-
uses: actions/setup-dotnet@v4
67+
uses: actions/setup-dotnet@v5
6868
with:
6969
dotnet-version: '7.0.x'
7070

7171
- name: Setup Dotnet SDK (8.0)
72-
uses: actions/setup-dotnet@v4
72+
uses: actions/setup-dotnet@v5
7373
with:
7474
dotnet-version: '8.0.x'
7575

7676
- name: Setup Dotnet SDK (9.0)
77-
uses: actions/setup-dotnet@v4
77+
uses: actions/setup-dotnet@v5
7878
with:
7979
dotnet-version: '9.0.x'
80+
81+
- name: Setup Dotnet SDK (10.0)
82+
uses: actions/setup-dotnet@v5
83+
with:
84+
dotnet-version: '10.0.x'
8085

8186
- name: Get Dotnet Info
8287
run: dotnet --info
@@ -121,7 +126,7 @@ jobs:
121126
}
122127
123128
- name: Upload Chocolatey Artifact
124-
uses: actions/upload-artifact@v4
129+
uses: actions/upload-artifact@v5
125130
with:
126131
# Artifact name
127132
name: Chocolatey Package
@@ -130,7 +135,7 @@ jobs:
130135
retention-days: 0
131136

132137
- name: Upload Reloaded Artifact
133-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@v5
134139
with:
135140
# Artifact name
136141
name: Loader Build
@@ -139,7 +144,7 @@ jobs:
139144
retention-days: 0
140145

141146
- name: Upload Installer Artifact
142-
uses: actions/upload-artifact@v4
147+
uses: actions/upload-artifact@v5
143148
with:
144149
# Artifact name
145150
name: Installer
@@ -150,7 +155,7 @@ jobs:
150155
retention-days: 0
151156

152157
- name: Upload NuGet Artifacts
153-
uses: actions/upload-artifact@v4
158+
uses: actions/upload-artifact@v5
154159
with:
155160
# Artifact name
156161
name: NuGet Packages
@@ -159,7 +164,7 @@ jobs:
159164
retention-days: 0
160165

161166
- name: Upload Changelog Artifact
162-
uses: actions/upload-artifact@v4
167+
uses: actions/upload-artifact@v5
163168
with:
164169
# Artifact name
165170
name: Changelog
@@ -168,7 +173,7 @@ jobs:
168173
retention-days: 0
169174

170175
- name: Upload Tools Artifact
171-
uses: actions/upload-artifact@v4
176+
uses: actions/upload-artifact@v5
172177
with:
173178
# Artifact name
174179
name: Tools

.github/workflows/reloaded-utils-server.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ jobs:
4646
shell: pwsh
4747

4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v5
5050
with:
5151
fetch-depth: 0
5252
submodules: 'recursive'
5353

5454
- name: Setup .NET Core SDK (5.0)
55-
uses: actions/setup-dotnet@v4
55+
uses: actions/setup-dotnet@v5
5656
with:
5757
dotnet-version: 5.0.x
5858

59-
- name: Setup .NET Core SDK (9.0)
60-
uses: actions/setup-dotnet@v4
59+
- name: Setup .NET Core SDK (10.0)
60+
uses: actions/setup-dotnet@v5
6161
with:
62-
dotnet-version: 9.0.x
62+
dotnet-version: 10.0.x
6363

6464
- name: Setup Node.js
65-
uses: actions/setup-node@v4
65+
uses: actions/setup-node@v6
6666
with:
67-
node-version: '14'
67+
node-version: '20'
6868

6969
- name: Setup AutoChangelog
7070
run: npm install -g auto-changelog
@@ -83,7 +83,7 @@ jobs:
8383
run: ./source/Mods/Reloaded.Utils.Server/Publish.ps1 -ChangelogPath "$env:PUBLISH_CHANGELOG_PATH" -BuildR2R true
8484

8585
- name: Upload GitHub Release Artifact
86-
uses: actions/upload-artifact@v4
86+
uses: actions/upload-artifact@v5
8787
with:
8888
# Artifact name
8989
name: GitHub Release
@@ -92,7 +92,7 @@ jobs:
9292
${{ env.PUBLISH_GITHUB_PATH }}/*
9393
9494
- name: Upload GameBanana Release Artifact
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@v5
9696
with:
9797
# Artifact name
9898
name: GameBanana Release
@@ -101,7 +101,7 @@ jobs:
101101
${{ env.PUBLISH_GAMEBANANA_PATH }}/*
102102
103103
- name: Upload NuGet Release Artifact
104-
uses: actions/upload-artifact@v4
104+
uses: actions/upload-artifact@v5
105105
with:
106106
# Artifact name
107107
name: NuGet Release
@@ -110,7 +110,7 @@ jobs:
110110
${{ env.PUBLISH_NUGET_PATH }}/*
111111
112112
- name: Upload Changelog Artifact
113-
uses: actions/upload-artifact@v4
113+
uses: actions/upload-artifact@v5
114114
with:
115115
# Artifact name
116116
name: Changelog

0 commit comments

Comments
 (0)