Skip to content

Commit

Permalink
Next version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmorris committed Dec 19, 2024
1 parent 8163d20 commit 3b07d19
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 38 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'

- name: Check out repository code
uses: actions/checkout@v4

- name: Build
run: dotnet build "./Source/" --configuration Release -p:Version=${{ github.event.release.tag_name }} -p:AssemblyVersion=${{ github.event.release.tag_name }} -p:FileVersion=${{ github.event.release.tag_name }}

- name: Pack
run: dotnet pack "./Source/" --configuration Release --no-build -p:Version=${{ github.event.release.tag_name }} -p:AssemblyVersion=${{ github.event.release.tag_name }} -p:FileVersion=${{ github.event.release.tag_name }} -o ./artifacts

- name: Push to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
1 change: 0 additions & 1 deletion Build.bat

This file was deleted.

2 changes: 0 additions & 2 deletions BuildAndTest.bat

This file was deleted.

3 changes: 3 additions & 0 deletions Docs/Releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

## Releases

### New in 2.1
- Support only .NET 8 and 9.

### New in 2.0
- Add support for .NET 7
- Remove support for .NET frameworks no longer supported by Microsoft
Expand Down
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

5 changes: 1 addition & 4 deletions Source/Lib/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<Version>2.0.0</Version>

<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<Authors>Peter Morris</Authors>
<Company />
<Copyright>Peter Morris</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<PackageTags>Blazor</PackageTags>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Lib\MrPMorris.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\..\Images\control-flow-logo.png">
<Pack>True</Pack>
Expand All @@ -28,8 +22,8 @@


<ItemGroup>
<PackageReference Condition="'$(TargetFramework)' == 'net6.0'" Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
<PackageReference Condition="'$(TargetFramework)' == 'net7.0'" Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
<PackageReference Condition="'$(TargetFramework)' == 'net9.0'" Include="Microsoft.AspNetCore.Components.Web" Version="[9.0.0.0,10.0.0.0)" />
<PackageReference Condition="'$(TargetFramework)' == 'net8.0'" Include="Microsoft.AspNetCore.Components.Web" Version="[8.0.0.0,9.0.0.0)" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Source/Tutorials/ForEachExample/ForEachExample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Source/Tutorials/IfThenElseSample/IfThenElseSample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down

0 comments on commit 3b07d19

Please sign in to comment.