Skip to content

Commit c52533a

Browse files
Fix actions build (#176)
1 parent 8a0fc9a commit c52533a

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
uses: actions/checkout@v3
2020
- name: Fetch all tags and branches
2121
run: git fetch --prune --unshallow
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: '3.1.x'
2226
- name: Build
2327
run: ./build.ps1
2428
- name: Upload artifacts
25-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
2630
with:
2731
path: artifacts/*.nupkg

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ jobs:
1717
uses: actions/checkout@v3
1818
- name: Fetch all tags and branches
1919
run: git fetch --prune --unshallow
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '3.1.x'
2024
- name: Deploy
2125
env:
2226
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
2327
run: ./build.ps1 publish
2428
- name: Upload artifacts
25-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
2630
with:
2731
path: artifacts/*.nupkg

‎build/build.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

88
<ItemGroup>

‎src/Machine.Specifications.Runner.VisualStudio.Specs/Machine.Specifications.Runner.VisualStudio.Specs.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)