From dd15b8f18ebf174bd22b58991a4be17e89bb0f61 Mon Sep 17 00:00:00 2001 From: Simon Annetts Date: Thu, 6 Mar 2025 16:10:39 +0000 Subject: [PATCH 1/9] 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 7d67d96..9438bc8 100644 --- a/.github/workflows/cloudscribe-develop.yml +++ b/.github/workflows/cloudscribe-develop.yml @@ -6,6 +6,7 @@ name: cloudscribe-localization-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.Web.Localization From b0d1f0244ef79d457aae3ead61eb63b813a0e54c Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Fri, 28 Mar 2025 13:59:41 +0000 Subject: [PATCH 2/9] Update cloudscribe.Web.Localization.csproj --- .../cloudscribe.Web.Localization.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloudscribe.Web.Localization/cloudscribe.Web.Localization.csproj b/src/cloudscribe.Web.Localization/cloudscribe.Web.Localization.csproj index 8ba0626..f049bf2 100644 --- a/src/cloudscribe.Web.Localization/cloudscribe.Web.Localization.csproj +++ b/src/cloudscribe.Web.Localization/cloudscribe.Web.Localization.csproj @@ -1,8 +1,8 @@ - + more flexible localization for ASP.NET Core - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe.Web.Localization From 5d354fdddc2283aa53ea5fc4df18b10b96146ff0 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:30:04 +0100 Subject: [PATCH 3/9] Create nuget-push-to-esdm-nexus.yml --- .../workflows/nuget-push-to-esdm-nexus.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/nuget-push-to-esdm-nexus.yml diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml new file mode 100644 index 0000000..96b9c1e --- /dev/null +++ b/.github/workflows/nuget-push-to-esdm-nexus.yml @@ -0,0 +1,36 @@ +name: Manual NuGet Push to ESDM Nexus + +on: + workflow_dispatch: + +jobs: + push-nuget: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Setup NuGet + run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build -c Release + - name: Create NuGet package + run: dotnet pack -c Release + - name: Publish NuGet package + run: dotnet nuget push **/*.nupkg --source ${{ secrets.ESDM_NUGET_HOSTED_URL }} + - name: Find and Push NuGet packages + run: | + PACKAGES=$(find . -name "*.nupkg" | grep -E "cloudscribe|sts\.Common") + if [ -z "$PACKAGES" ]; then + echo "No matching package found. Exiting." + exit 1 + fi + echo "Found packages: $PACKAGES" + for PACKAGE in $PACKAGES; do + echo "Pushing $PACKAGE" + done + \ No newline at end of file From 397107f49eedd717efeb5a7c32b90cce80cd39fb Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:34:20 +0100 Subject: [PATCH 4/9] Update nuget-push-to-esdm-nexus.yml --- .../workflows/nuget-push-to-esdm-nexus.yml | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml index 96b9c1e..241d6f4 100644 --- a/.github/workflows/nuget-push-to-esdm-nexus.yml +++ b/.github/workflows/nuget-push-to-esdm-nexus.yml @@ -6,24 +6,24 @@ on: jobs: push-nuget: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: Setup NuGet - run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build -c Release - - name: Create NuGet package - run: dotnet pack -c Release - - name: Publish NuGet package - run: dotnet nuget push **/*.nupkg --source ${{ secrets.ESDM_NUGET_HOSTED_URL }} - - name: Find and Push NuGet packages - run: | + steps: # <-- Correct indentation + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Setup NuGet + run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build -c Release + - name: Create NuGet package + run: dotnet pack -c Release + - name: Publish NuGet package + run: dotnet nuget push **/*.nupkg --source ${{ secrets.ESDM_NUGET_HOSTED_URL }} + - name: Find and Push NuGet packages + run: | PACKAGES=$(find . -name "*.nupkg" | grep -E "cloudscribe|sts\.Common") if [ -z "$PACKAGES" ]; then echo "No matching package found. Exiting." @@ -33,4 +33,3 @@ jobs: for PACKAGE in $PACKAGES; do echo "Pushing $PACKAGE" done - \ No newline at end of file From b3954511157ea2a7aa8e46d796649a26ec515e3b Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:47:55 +0100 Subject: [PATCH 5/9] Delete nuget-push-to-esdm-nexus.yml --- .../workflows/nuget-push-to-esdm-nexus.yml | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/nuget-push-to-esdm-nexus.yml diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml deleted file mode 100644 index 241d6f4..0000000 --- a/.github/workflows/nuget-push-to-esdm-nexus.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Manual NuGet Push to ESDM Nexus - -on: - workflow_dispatch: - -jobs: - push-nuget: - runs-on: ubuntu-latest - steps: # <-- Correct indentation - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: Setup NuGet - run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build -c Release - - name: Create NuGet package - run: dotnet pack -c Release - - name: Publish NuGet package - run: dotnet nuget push **/*.nupkg --source ${{ secrets.ESDM_NUGET_HOSTED_URL }} - - name: Find and Push NuGet packages - run: | - PACKAGES=$(find . -name "*.nupkg" | grep -E "cloudscribe|sts\.Common") - if [ -z "$PACKAGES" ]; then - echo "No matching package found. Exiting." - exit 1 - fi - echo "Found packages: $PACKAGES" - for PACKAGE in $PACKAGES; do - echo "Pushing $PACKAGE" - done From 23fe6ebce36f26b423156f8b3b5753e091245910 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:51:38 +0100 Subject: [PATCH 6/9] Update nuget-push-to-esdm-nexus.yml --- .github/workflows/nuget-push-to-esdm-nexus.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml index 0058416..546159c 100644 --- a/.github/workflows/nuget-push-to-esdm-nexus.yml +++ b/.github/workflows/nuget-push-to-esdm-nexus.yml @@ -13,8 +13,6 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x - - name: Setup NuGet - run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text --name esdm-nexus - name: Restore dependencies run: dotnet restore - name: Build From 497dc9c4152fad756b3ca333fd686434433bdc7a Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:55:33 +0100 Subject: [PATCH 7/9] Update nuget-push-to-esdm-nexus.yml --- .github/workflows/nuget-push-to-esdm-nexus.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml index 546159c..96d6658 100644 --- a/.github/workflows/nuget-push-to-esdm-nexus.yml +++ b/.github/workflows/nuget-push-to-esdm-nexus.yml @@ -2,7 +2,6 @@ name: Manual NuGet Push to ESDM Nexus on: workflow_dispatch: - branches: [ "develop" ] jobs: push-nuget: @@ -13,6 +12,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x + - name: Something + run: echo "hello" && exit 0 - name: Restore dependencies run: dotnet restore - name: Build From 0e4ff3a30155b28642c43f79d81a0c466bbea754 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Thu, 3 Apr 2025 13:07:27 +0100 Subject: [PATCH 8/9] Update nuget-push-to-esdm-nexus.yml --- .github/workflows/nuget-push-to-esdm-nexus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget-push-to-esdm-nexus.yml b/.github/workflows/nuget-push-to-esdm-nexus.yml index 96d6658..913ff37 100644 --- a/.github/workflows/nuget-push-to-esdm-nexus.yml +++ b/.github/workflows/nuget-push-to-esdm-nexus.yml @@ -12,8 +12,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x - - name: Something - run: echo "hello" && exit 0 + - name: Setup NuGet + run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text --name esdm-nexus - name: Restore dependencies run: dotnet restore - name: Build From a5623a8b63df781c988908f6ac32dd16401c2c77 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:20:12 +0100 Subject: [PATCH 9/9] jk - update version ps1 enhanced --- 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." +