You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uses: release-drafter/[email protected]# Pinned to v6.0.0 to avoid v6.1.0 bug: https://github.com/release-drafter/release-drafter/issues/1425
11
+
env:
12
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13
+
- uses: actions/checkout@v6
14
+
with:
15
+
submodules: 'recursive'
16
+
- name: Setup .NET
17
+
uses: actions/setup-dotnet@v5
18
+
with:
19
+
dotnet-version: '10.x'
20
+
- name: Build and Test
21
+
env:
22
+
RELEASE_NOTES: |
23
+
# ${{ steps.release_drafter.outputs.name }}
24
+
25
+
${{ steps.release_drafter.outputs.body }}
26
+
run: |
27
+
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
#### Awaiting coverlet.MTP at https://github.com/coverlet-coverage/coverlet/pull/1788
34
+
# # --collect:"XPlat Code Coverage" means collect test coverage with https://github.com/coverlet-coverage/coverlet
35
+
# # Coverlet settings come after --: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#advanced-options-supported-via-runsettings
- name: Upload CSharpMath.Rendering.Tests results as CI artifacts
58
+
uses: actions/upload-artifact@v4
59
+
if: always() # Run even when a previous step failed: https://stackoverflow.com/a/58859404/5429648
60
+
with:
61
+
name: CSharpMath.Rendering.Tests results
62
+
path: CSharpMath.Rendering.Tests/*/*.png
63
+
- name: Upload CSharpMath.Xaml.Tests.NuGet results as CI artifacts
64
+
uses: actions/upload-artifact@v4
65
+
if: always()
66
+
with:
67
+
name: CSharpMath.Xaml.Tests.NuGet results
68
+
path: CSharpMath.Xaml.Tests.NuGet/*.png
69
+
- name: Upload NuGet packages as CI artifacts
70
+
uses: actions/upload-artifact@v4
71
+
if: always()
72
+
with:
73
+
name: NuGet packages
74
+
path: .nupkgs/
75
+
- name: Push CI artifacts to GitHub Packages registry
76
+
if: github.ref == 'refs/heads/master'
77
+
run: |
78
+
# "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211
79
+
# So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation
80
+
# We use quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120
81
+
# --no-symbols true to not let GitHub Releases interpret .snupkg as .nupkg
Copy file name to clipboardExpand all lines: .github/workflows/Release.yml
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ on:
5
5
types: [published]
6
6
jobs:
7
7
CSharpMath:
8
-
runs-on: ubuntu-latest
8
+
runs-on: windows-latest
9
9
steps:
10
-
- uses: actions/checkout@v2
10
+
- uses: actions/checkout@v6
11
11
with:
12
12
submodules: 'recursive'
13
-
- name: Setup .NET Core
14
-
uses: actions/setup-dotnet@v1
13
+
- name: Setup .NET
14
+
uses: actions/setup-dotnet@v5
15
15
with:
16
-
dotnet-version: '3.1.401'
16
+
dotnet-version: '10.x'
17
17
- name: Build GitHub Releases draft artifacts
18
18
env:
19
19
RELEASE_NOTES: |
@@ -22,13 +22,13 @@ jobs:
22
22
${{ github.event.release.body }}
23
23
run: |
24
24
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
# retry 5 times since dotnet outdated fails often: https://github.com/jerriep/dotnet-outdated/issues/299
28
-
update || update || update || update || update
29
-
- name: Build and Test
30
-
env:
31
-
RELEASE_NOTES: |
32
-
# ${{ steps.release_drafter.outputs.name }}
33
-
34
-
${{ steps.release_drafter.outputs.body }}
35
-
run: |
36
-
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
# ${parameter/pattern/string} If pattern begins with ‘/’, all matches of pattern are replaced with string. Normally only the first match is replaced.
39
-
RELEASE_NOTES=${RELEASE_NOTES//,/%2C}
40
-
RELEASE_NOTES=${RELEASE_NOTES//;/%3B}
41
-
42
-
# --collect:"XPlat Code Coverage" means collect test coverage with https://github.com/coverlet-coverage/coverlet
43
-
# Coverlet settings come after --: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#advanced-options-supported-via-runsettings
- name: Upload CSharpMath.Rendering.Tests results as CI artifacts
65
-
uses: actions/upload-artifact@v2
66
-
if: always() # Run even when a previous step failed: https://stackoverflow.com/a/58859404/5429648
16
+
# Check required Xcode version for latest "dotnet workload restore": https://github.com/dotnet/macios/releases
17
+
xcode-version: '26.2'# If this is to be changed, also check macos-version in matrix.os above
18
+
- uses: actions/setup-dotnet@v5
67
19
with:
68
-
name: CSharpMath.Rendering.Tests results
69
-
path: CSharpMath.Rendering.Tests/*/*.png
70
-
- name: Upload CSharpMath.Xaml.Tests.NuGet results as CI artifacts
71
-
uses: actions/upload-artifact@v2
72
-
if: always()
73
-
with:
74
-
name: CSharpMath.Xaml.Tests.NuGet results
75
-
path: CSharpMath.Xaml.Tests.NuGet/*.png
76
-
- name: Upload NuGet packages as CI artifacts
77
-
uses: actions/upload-artifact@v2
78
-
if: always()
79
-
with:
80
-
name: NuGet packages
81
-
path: .nupkgs/
82
-
- name: Push CI artifacts to GitHub Packages registry
83
-
if: github.ref == 'refs/heads/master'
84
-
run: |
85
-
# "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211
86
-
# So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation
87
-
# We use quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120
88
-
# --no-symbols true to not let GitHub Releases interpret .snupkg as .nupkg
0 commit comments