Skip to content

Commit 7ca64b8

Browse files
committed
Fixed deprecated workflow actions. Added editorconfig.
1 parent 18addae commit 7ca64b8

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22

33
# CA1416: Validate platform compatibility
44
dotnet_diagnostic.CA1416.severity = silent
5+
6+
# Indentation and spacing
7+
indent_size = 4
8+
indent_style = space
9+
tab_width = 4

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
name: Build Mod
1010
runs-on: ubuntu-latest
1111
env:
12-
MODKIT_VERSION: 0.11.0.2-beta-release-707
12+
MODKIT_VERSION: 0.11.1.1-beta-release-758
1313
ECO_BRANCH: staging
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Setup .NET Core 7.0
1717
uses: actions/setup-dotnet@v1
1818
with:
@@ -23,7 +23,7 @@ jobs:
2323
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
2424
- name: Cache Eco dlls
2525
id: cache-eco-dlls
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ./eco-dlls
2929
key: ${{ env.MODKIT_VERSION }}-ref-dlls
@@ -35,7 +35,7 @@ jobs:
3535
env:
3636
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
3737
- name: Upload build artifact
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: mod-binaries-${{github.event.release.tag_name}}
4141
path: EcoLawExtensionsMod/bin/Release/net7.0/EcoLawExtensionsMod.*
@@ -47,7 +47,7 @@ jobs:
4747
steps:
4848
- name: Download build artifact (mod)
4949
id: download-mod
50-
uses: actions/download-artifact@v2
50+
uses: actions/download-artifact@v4
5151
with:
5252
name: mod-binaries-${{github.event.release.tag_name}}
5353
- name: Upload release asset (mod)

.github/workflows/staging.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ on:
77

88
jobs:
99
build-mod:
10+
name: Build Mod
1011
runs-on: ubuntu-latest
1112
env:
12-
MODKIT_VERSION: 0.11.0.2-beta-release-707
13+
MODKIT_VERSION: 0.11.1.1-beta-release-758
1314
ECO_BRANCH: staging
1415
steps:
15-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1617
- name: Setup .NET Core 7.0
1718
uses: actions/setup-dotnet@v1
1819
with:
@@ -23,7 +24,7 @@ jobs:
2324
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
2425
- name: Cache Eco dlls
2526
id: cache-eco-dlls
26-
uses: actions/cache@v2
27+
uses: actions/cache@v4
2728
with:
2829
path: ./eco-dlls
2930
key: ${{ env.MODKIT_VERSION }}-ref-dlls
@@ -35,7 +36,7 @@ jobs:
3536
env:
3637
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
3738
- name: Upload build artifact
38-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v4
3940
with:
4041
name: mod-binaries-staging
4142
path: EcoLawExtensionsMod/bin/Release/net7.0/EcoLawExtensionsMod.*
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace Eco.Mods.LawExtensions
2+
{
3+
using Core.Plugins.Interfaces;
4+
5+
public class LawExtensionsMod : IModInit
6+
{
7+
public static ModRegistration Register() => new()
8+
{
9+
ModName = "LawExtensions",
10+
ModDescription = "Extends the law system with a number of helpful utility game values and legal actions.",
11+
ModDisplayName = "Law Extensions",
12+
};
13+
}
14+
}

0 commit comments

Comments
 (0)