Skip to content

Commit 3d144f4

Browse files
committed
fix: update release workflow with correct paths and test configurations
1 parent 193e99d commit 3d144f4

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if ($tag -notmatch '^v(.+)') { throw "Tag must be v<version>" }
2121
$tagver = $Matches[1]
2222
23-
[xml]$xml = Get-Content "Harmony/Directory.Build.props"
23+
[xml]$xml = Get-Content "Directory.Build.props"
2424
$filever = ($xml.SelectSingleNode('//HarmonyVersion')).InnerText
2525
2626
if ($filever -ne $tagver) {
@@ -31,8 +31,8 @@ jobs:
3131
$prev = (git describe --tags --abbrev=0 HEAD^ 2>$null)
3232
if ($LASTEXITCODE -eq 0) {
3333
$changed = git diff --name-only $prev HEAD
34-
if ($changed -notcontains 'Harmony/Directory.Build.props') {
35-
Write-Warning "Tagged commit did not change Harmony/Directory.Build.props"
34+
if ($changed -notcontains 'Directory.Build.props') {
35+
Write-Warning "Tagged commit did not change Directory.Build.props"
3636
}
3737
}
3838
@@ -52,12 +52,19 @@ jobs:
5252
run: dotnet build Harmony.sln -c Release --no-restore
5353

5454
- name: Run tests
55-
run: dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal
55+
shell: pwsh
56+
run: |
57+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net452
58+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net472
59+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net48
60+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net6.0
61+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net7.0
62+
dotnet test HarmonyTests/HarmonyTests.csproj -c Release --no-build --verbosity normal --framework net8.0
5663
5764
- name: Pack NuGet packages
5865
run: |
59-
dotnet pack Harmony/Harmony.csproj -c Release -o out --no-build
60-
dotnet pack HarmonyX/HarmonyX.csproj -c Release -o out --no-build
66+
dotnet pack Lib.Harmony/Lib.Harmony.csproj -c Release -o out --no-build
67+
dotnet pack Lib.Harmony.Thin/Lib.Harmony.Thin.csproj -c Release -o out --no-build
6168
6269
- name: Create GitHub Release
6370
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)