Skip to content

Commit 254a593

Browse files
authored
Merge pull request #7 from dreamsyntax/ci-gaming
Updated: GH Actions to latest
2 parents f9555d1 + 1dd583b commit 254a593

2 files changed

Lines changed: 16 additions & 40 deletions

File tree

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

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Build and Publish
22

33
on:
44
push:
5-
branches: [ master, 2.X ]
5+
branches: [ master, main ]
66
tags:
77
- '*'
88
pull_request:
9-
branches: [ master, 2.X ]
9+
branches: [ master, main ]
1010
workflow_dispatch:
1111

1212
env:
@@ -25,31 +25,28 @@ jobs:
2525
shell: pwsh
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 0
3131

3232
- name: Setup .NET Core SDK (3.1.x)
33-
uses: actions/setup-dotnet@v1.9.0
33+
uses: actions/setup-dotnet@v5
3434
with:
35-
# Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
3635
dotnet-version: 3.1.x
3736

38-
- name: Setup .NET Core SDK (5.0.x)
39-
uses: actions/setup-dotnet@v1.9.0
37+
- name: Setup .NET Core SDK (5.0)
38+
uses: actions/setup-dotnet@v5
4039
with:
41-
# Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
4240
dotnet-version: 5.0.x
4341

44-
- name: Setup .NET Core SDK (6.0.x)
45-
uses: actions/setup-dotnet@v1.9.0
42+
- name: Setup .NET Core SDK (9.0)
43+
uses: actions/setup-dotnet@v5
4644
with:
47-
# Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
48-
dotnet-version: 6.0.x
45+
dotnet-version: 9.0.x
4946

5047
# Required for C#10 features.
5148
- name: Setup Node.js
52-
uses: actions/setup-node@v2
49+
uses: actions/setup-node@v6
5350
with:
5451
node-version: '14'
5552

@@ -67,11 +64,8 @@ jobs:
6764
dotnet test ./Source/Reloaded.Messaging.Tests/Reloaded.Messaging.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="../../$env:CODE_COVERAGE_PATH" --% /p:Exclude=\"[xunit.*]*\"
6865
6966
- name: Codecov
70-
# You may pin to the exact commit or the version.
71-
# uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
72-
uses: codecov/codecov-action@v2.1.0
67+
uses: codecov/codecov-action@v5
7368
with:
74-
# Comma-separated list of files to upload
7569
files: ${{ env.CODE_COVERAGE_PATH }}
7670

7771
- name: Create Changelog (on Tag)
@@ -86,31 +80,25 @@ jobs:
8680
}
8781
8882
- name: Upload NuGet Package Artifact
89-
uses: actions/upload-artifact@v2.2.4
83+
uses: actions/upload-artifact@v4
9084
with:
91-
# Artifact name
9285
name: NuGet Packages
93-
# A file, directory or wildcard pattern that describes what to upload
9486
path: |
9587
${{ env.NUPKG_GLOB }}
9688
9789
- name: Upload Changelog Artifact
98-
uses: actions/upload-artifact@v2.2.4
90+
uses: actions/upload-artifact@v4
9991
with:
100-
# Artifact name
10192
name: Changelog
102-
# A file, directory or wildcard pattern that describes what to upload
10393
path: ${{ env.CHANGELOG_PATH }}
10494
retention-days: 0
10595

10696

10797
- name: Upload to GitHub Releases
108-
uses: softprops/action-gh-release@v0.1.14
98+
uses: softprops/action-gh-release@v2
10999
if: env.IS_RELEASE == 'true'
110100
with:
111-
# Path to load note-worthy description of changes in release from
112101
body_path: ${{ env.CHANGELOG_PATH }}
113-
# Newline-delimited list of path globs for asset files to upload
114102
files: |
115103
${{ env.NUPKG_GLOB }}
116104
${{ env.CHANGELOG_PATH }}
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
11
name: DeployMkDocs
22

3-
# Controls when the action will run.
43
on:
5-
# Triggers the workflow on push on the master branch
64
push:
7-
branches: [ master, 2.X ]
5+
branches: [ master, main ]
86

9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
139
jobs:
14-
# This workflow contains a single job called "build"
1510
build:
16-
# The type of runner that the job will run on
1711
runs-on: ubuntu-latest
1812

19-
# Steps represent a sequence of tasks that will be executed as part of the job
2013
steps:
21-
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2314
- name: Checkout Branch
24-
uses: actions/checkout@v2
15+
uses: actions/checkout@v5
2516

26-
# Deploy MkDocs
2717
- name: Deploy MkDocs
28-
# You may pin to the exact commit or the version.
29-
# uses: mhausenblas/mkdocs-deploy-gh-pages@66340182cb2a1a63f8a3783e3e2146b7d151a0bb
3018
uses: mhausenblas/mkdocs-deploy-gh-pages@master
3119
env:
3220
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)