|
26 | 26 | Set-Content -Path README.md -Value $content |
27 | 27 |
|
28 | 28 |
|
29 | | - - name: Check version consistency of git tag and CHANGELOG.md |
| 29 | + # publish net 10 with no suffix |
| 30 | + - name: Set target framework to net10 in FeshHosting.fsproj |
| 31 | + run: | |
| 32 | + $projFile = Get-Content -Path FeshHosting.fsproj -Raw |
| 33 | + $projFile = $projFile -replace "<TargetFramework>.*?</TargetFramework>", "<TargetFramework>net10.0-windows</TargetFramework>" |
| 34 | + Set-Content -Path FeshHosting.fsproj -Value $projFile |
| 35 | + |
| 36 | + - name: Dotnet build FeshHosting for net10 |
| 37 | + run: dotnet build FeshHosting.fsproj --configuration Release --output bin/publishNuget |
| 38 | + |
| 39 | + - name: Check version consistency of git tag and CHANGELOG.md after build |
30 | 40 | # needs in fsproj: |
31 | 41 | # <Target Name="WriteChangelogVersion" AfterTargets="AfterBuild"><!-- for version checks in github tag based builds --> |
32 | 42 | # <WriteLinesToFile File="./bin/ChangelogVersion.txt" Lines="@(CurrentReleaseChangelog)" Overwrite="true" ContinueOnError="false" /> |
|
41 | 51 | fi |
42 | 52 | echo "CHANGELOG_VERSION=$CHANGELOG_VERSION" |
43 | 53 | echo "github.ref_name=${{ github.ref_name }}" |
44 | | - echo "Version check of git tag and CHANGELOG.md passed successfully." |
45 | | -
|
| 54 | + echo "Version check of git tag and CHANGELOG.md passed successfully." |
46 | 55 | |
47 | | - |
48 | | - # publish net 10 with no suffix |
49 | | - - name: Set target framework to net10 in FeshHosting.fsproj |
50 | | - run: | |
51 | | - $projFile = Get-Content -Path FeshHosting.fsproj -Raw |
52 | | - $projFile = $projFile -replace "<TargetFramework>.*?</TargetFramework>", "<TargetFramework>net10.0-windows</TargetFramework>" |
53 | | - Set-Content -Path FeshHosting.fsproj -Value $projFile |
54 | | - |
55 | | - - name: Dotnet build FeshHosting for net10 |
56 | | - run: dotnet build FeshHosting.fsproj --configuration Release --output bin/publishNuget |
57 | 56 |
|
58 | 57 | - name: Push net10 NuGet package to nuget.org without suffix |
59 | 58 | run: | |
|
0 commit comments