From 12bd692cddd90ddbbbdffbb800fbbe060351bc90 Mon Sep 17 00:00:00 2001 From: Simon Annetts Date: Thu, 6 Mar 2025 16:01:16 +0000 Subject: [PATCH 1/3] #11 Update cloudscribe-develop.yml --- .github/workflows/cloudscribe-develop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cloudscribe-develop.yml b/.github/workflows/cloudscribe-develop.yml index 4faca46..261a8db 100644 --- a/.github/workflows/cloudscribe-develop.yml +++ b/.github/workflows/cloudscribe-develop.yml @@ -6,6 +6,7 @@ name: cloudscribe-syndication-develop-nuget-build on: push: branches: [ "develop" ] + workflow_dispatch: # pull_request: # branches: [ "develop" ] @@ -30,3 +31,9 @@ jobs: run: dotnet pack -c Release - name: Publish NuGet package run: dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }} + - name: Remote Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GHB_PAT }} + repository: GreatHouseBarn/cloudscribe-testing + event-type: cs.Syndication From 67a40eb74551301311eb8318fa404997c53e3ed2 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Fri, 28 Mar 2025 14:31:57 +0000 Subject: [PATCH 2/3] v8.1 increments --- .../cloudscribe.Syndication.Web.csproj | 4 ++-- src/cloudscribe.Syndication/cloudscribe.Syndication.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cloudscribe.Syndication.Web/cloudscribe.Syndication.Web.csproj b/src/cloudscribe.Syndication.Web/cloudscribe.Syndication.Web.csproj index 4799365..5b70651 100644 --- a/src/cloudscribe.Syndication.Web/cloudscribe.Syndication.Web.csproj +++ b/src/cloudscribe.Syndication.Web/cloudscribe.Syndication.Web.csproj @@ -1,8 +1,8 @@ - + asp.netcore mvc controller for rss feeds - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;syndication;rss;atom;feed diff --git a/src/cloudscribe.Syndication/cloudscribe.Syndication.csproj b/src/cloudscribe.Syndication/cloudscribe.Syndication.csproj index 6cadb17..97b4b53 100644 --- a/src/cloudscribe.Syndication/cloudscribe.Syndication.csproj +++ b/src/cloudscribe.Syndication/cloudscribe.Syndication.csproj @@ -1,8 +1,8 @@ - + cloudscribe.Syndication Class Library - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;syndication;rss;atom;feed;xml From 152b22b98fed21068e5a14042a9d6e2faa5ca986 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 30 Apr 2025 16:47:52 +0100 Subject: [PATCH 3/3] Create update_version.ps1 --- update_version.ps1 | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 update_version.ps1 diff --git a/update_version.ps1 b/update_version.ps1 new file mode 100644 index 0000000..1e4919a --- /dev/null +++ b/update_version.ps1 @@ -0,0 +1,52 @@ +################### +## PS script to implement a semantic versioning change from (say) 8.0.x to 8.1 +## across all interdependent cs packages + +## Wherever we have 8.0.n replace it to 8.1.0 where n >= 0 + +## Wherever we have replace it to + +## Wherever we have replace it to where n >= 0 + +## Exclude cloudscribe.HtmlAgilityPack and DbHelpers because those ones are ancient and frozen +################### + + +# Define the directory containing the .csproj files +$directory = "src" + +# Define the old & new versions +$oldVersion = '8\.1' # slash needed ! +$newVersion = "8.2.0" +$newWildcardVersion = "8.2.*" + + +# Get all .csproj files in the directory and subdirectories +$csprojFiles = Get-ChildItem -Path $directory -Recurse -Filter *.csproj + +foreach ($file in $csprojFiles) { + # Read the content of the .csproj file + $content = Get-Content -Path $file.FullName + + # Update the version of cloudscribe package references, except for cloudscribe.HtmlAgilityPack and cloudscribe.DbHelpers + + $wildCardPattern = '(?<=$newVersion" + $updatedContent = $updatedContent -replace $versionPattern, $replacement + + + # Write the updated content back to the .csproj file + Set-Content -Path $file.FullName -Value $updatedContent + + Write-Host "Updated $file.FullName" +} + +Write-Host "All cloudscribe package references (except cloudscribe.HtmlAgilityPack and cloudscribe.DbHelpers) and elements have been updated to version $newVersion or $newWildcardVersion as appropriate." +