Skip to content

Commit 0ecdda2

Browse files
Update build
1 parent bc87bd7 commit 0ecdda2

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
]
1010
}
1111
}
12-
}
12+
}

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ updates:
99
directory: "/build"
1010
schedule:
1111
interval: "weekly"
12+
13+
- package-ecosystem: "nuget"
14+
directory: "/.config"
15+
schedule:
16+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
- name: Fetch all tags and branches
2121
run: git fetch --prune --unshallow
2222
- name: Build
2323
run: ./build.ps1
2424
- name: Upload artifacts
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v3
2626
with:
2727
path: artifacts/*.nupkg

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- name: Fetch all tags and branches
1919
run: git fetch --prune --unshallow
2020
- name: Deploy
2121
env:
2222
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
2323
run: ./build.ps1 publish
2424
- name: Upload artifacts
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v3
2626
with:
2727
path: artifacts/*.nupkg

build/build.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
Run("dotnet", "build " +
2828
"--no-restore " +
2929
"--configuration Release " +
30-
$"/p:Version={version.SemVer} " +
31-
$"/p:AssemblyVersion={version.AssemblySemVer} " +
32-
$"/p:FileVersion={version.AssemblySemFileVer} " +
33-
$"/p:InformationalVersion={version.InformationalVersion}");
30+
$"--property Version={version.SemVer} " +
31+
$"--property AssemblyVersion={version.AssemblySemVer} " +
32+
$"--property FileVersion={version.AssemblySemFileVer} " +
33+
$"--property InformationalVersion={version.InformationalVersion}");
3434
});
3535

3636
Target("test", DependsOn("build"), () =>
@@ -40,7 +40,7 @@
4040

4141
Target("package", DependsOn("build", "test"), () =>
4242
{
43-
Run("dotnet", $"pack --configuration Release --no-restore --no-build --output artifacts /p:Version={version.SemVer}");
43+
Run("dotnet", $"pack --configuration Release --no-restore --no-build --output artifacts --property Version={version.SemVer}");
4444
});
4545

4646
Target("publish", DependsOn("package"), () =>

build/build.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)