-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified Akka.Console template (#403)
* Simplified Akka.Console template close #401 * remove the `.App` suffix from `AkkaConsoleTemplate` * remove all `.sln` material from `AkkaStreamsTemplate` * streamlined `AkkaStreamsTemplate` * cleaned up metadata for Akka.Streams template * rebranding the WebApi template to `akkaclusterwebapi` * added release notes bumping * added `build.ps1` for release notes bumping * added separate script for installing templates * adding script to test templates * fixed issues with WebApi template install * removed `global.json` * overhaul GitHub Actions * make package install testing CI/CD friendly * fixed Microsoft.Extensions.Hosting references * simplified post-install scripts * added Akka.Streams to testing matrix * run tests on projects too * cleaning up templates * fixed end-to-end template testing * just drop windows builds
- Loading branch information
1 parent
4ab3ddb
commit f3b6328
Showing
50 changed files
with
397 additions
and
1,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ mono_crash.* | |
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
[oO]utput/ | ||
x64/ | ||
x86/ | ||
[Aa][Rr][Mm]/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## [0.4.1] / September 24 2024 | ||
#### 1.0.0 January 22 2025 #### | ||
|
||
* Upgraded all Akka.NET dependenices to [Akka v1.5.28](https://github.com/akkadotnet/akka.net/releases/tag/1.5.28) | ||
* Simplified and renamed all Akka.Templates per [https://github.com/akkadotnet/akkadotnet-templates/issues/225](https://github.com/akkadotnet/akkadotnet-templates/issues/225) | ||
* Upgraded to Akka.NET v1.5.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
. "$PSScriptRoot\scripts\getReleaseNotes.ps1" | ||
. "$PSScriptRoot\scripts\bumpVersion.ps1" | ||
|
||
Set-StrictMode -Version latest | ||
$ErrorActionPreference = "Stop" | ||
|
||
###################################################################### | ||
# Step 1: Grab release notes and update solution metadata | ||
###################################################################### | ||
$releaseNotes = Get-ReleaseNotes -MarkdownFile (Join-Path -Path $PSScriptRoot -ChildPath "RELEASE_NOTES.md") | ||
|
||
# inject release notes into Directory.Buil | ||
UpdateVersionAndReleaseNotes -ReleaseNotesResult $releaseNotes -XmlFilePath (Join-Path -Path $PSScriptRoot -ChildPath "Akka.Templates.csproj") | ||
|
||
Write-Output "Added release notes $releaseNotes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Inspired by https://github.com/AvaloniaUI/avalonia-dotnet-templates/blob/main/install-dev-templates.ps1 | ||
|
||
###################################################################### | ||
# Step 2: Uninstall previous templates and clean output | ||
###################################################################### | ||
dotnet new uninstall Akka.Templates | ||
Remove-Item bin/**/*.nupkg | ||
|
||
###################################################################### | ||
# Step 3: Pack new templates | ||
###################################################################### | ||
dotnet pack -c Release | ||
# Search Directory | ||
$directoryPath = ".\bin\Release" | ||
|
||
$latestNupkgFile = Get-ChildItem -Path $directoryPath -Recurse -Filter "*.nupkg" | | ||
Where-Object { -not $_.PSIsContainer } | | ||
Sort-Object LastWriteTime -Descending | | ||
Select-Object -First 1 | ||
|
||
###################################################################### | ||
# Step 4: install the templates | ||
###################################################################### | ||
if ($latestNupkgFile) { | ||
$latestNupkgPath = $latestNupkgFile.FullName | ||
dotnet new install $latestNupkgPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function UpdateVersionAndReleaseNotes { | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[PSCustomObject]$ReleaseNotesResult, | ||
|
||
[Parameter(Mandatory=$true)] | ||
[string]$XmlFilePath | ||
) | ||
|
||
# Load XML | ||
$xmlContent = New-Object XML | ||
$xmlContent.Load($XmlFilePath) | ||
|
||
# Update VersionPrefix and PackageReleaseNotes | ||
$versionPrefixElement = $xmlContent.SelectSingleNode("//VersionPrefix") | ||
$versionPrefixElement.InnerText = $ReleaseNotesResult.Version | ||
|
||
$packageReleaseNotesElement = $xmlContent.SelectSingleNode("//PackageReleaseNotes") | ||
$packageReleaseNotesElement.InnerText = $ReleaseNotesResult.ReleaseNotes | ||
|
||
# Save the updated XML | ||
$xmlContent.Save($XmlFilePath) | ||
} | ||
|
||
# Usage example: | ||
# $notes = Get-ReleaseNotes -MarkdownFile "$PSScriptRoot\RELEASE_NOTES.md" | ||
# $propsPath = Join-Path -Path (Get-Item $PSScriptRoot).Parent.FullName -ChildPath "Directory.Build.props" | ||
# UpdateVersionAndReleaseNotes -ReleaseNotesResult $notes -XmlFilePath $propsPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
function Get-ReleaseNotes { | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$MarkdownFile | ||
) | ||
|
||
# Read markdown file content | ||
$content = Get-Content -Path $MarkdownFile -Raw | ||
|
||
# Split content based on headers | ||
$sections = $content -split "####" | ||
|
||
# Output object to store result | ||
$outputObject = [PSCustomObject]@{ | ||
Version = $null | ||
Date = $null | ||
ReleaseNotes = $null | ||
} | ||
|
||
# Check if we have at least 3 sections (1. Before the header, 2. Header, 3. Release notes) | ||
if ($sections.Count -ge 3) { | ||
$header = $sections[1].Trim() | ||
$releaseNotes = $sections[2].Trim() | ||
|
||
# Extract version and date from the header | ||
$headerParts = $header -split " ", 2 | ||
if ($headerParts.Count -eq 2) { | ||
$outputObject.Version = $headerParts[0] | ||
$outputObject.Date = $headerParts[1] | ||
} | ||
|
||
$outputObject.ReleaseNotes = $releaseNotes | ||
} | ||
|
||
# Return the output object | ||
return $outputObject | ||
} | ||
|
||
# Call function example: | ||
#$result = Get-ReleaseNotes -MarkdownFile "$PSScriptRoot\RELEASE_NOTES.md" | ||
#Write-Output "Version: $($result.Version)" | ||
#Write-Output "Date: $($result.Date)" | ||
#Write-Output "Release Notes:" | ||
#Write-Output $result.ReleaseNotes |
Oops, something went wrong.