diff --git a/.github/workflows/cloudscribe-develop.yml b/.github/workflows/cloudscribe-develop.yml index b812588..db33202 100644 --- a/.github/workflows/cloudscribe-develop.yml +++ b/.github/workflows/cloudscribe-develop.yml @@ -6,6 +6,7 @@ name: cloudscribe-simplecontactform-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.SimpleContactForm diff --git a/src/WebApp/WebApp.csproj b/src/WebApp/WebApp.csproj index 9bbac3c..57770a0 100644 --- a/src/WebApp/WebApp.csproj +++ b/src/WebApp/WebApp.csproj @@ -1,4 +1,4 @@ - + net8.0 @@ -24,11 +24,11 @@ - - - - - + + + + + diff --git a/src/cloudscribe.SimpleContactForm.CoreIntegration/cloudscribe.SimpleContactForm.CoreIntegration.csproj b/src/cloudscribe.SimpleContactForm.CoreIntegration/cloudscribe.SimpleContactForm.CoreIntegration.csproj index 48db9a2..c1b8e3a 100644 --- a/src/cloudscribe.SimpleContactForm.CoreIntegration/cloudscribe.SimpleContactForm.CoreIntegration.csproj +++ b/src/cloudscribe.SimpleContactForm.CoreIntegration/cloudscribe.SimpleContactForm.CoreIntegration.csproj @@ -1,8 +1,8 @@ - + Integration library for usingcloudscribe SimpleContactForm with cloudscribe.Core - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;contact form @@ -23,7 +23,7 @@ - + diff --git a/src/cloudscribe.SimpleContactForm/cloudscribe.SimpleContactForm.csproj b/src/cloudscribe.SimpleContactForm/cloudscribe.SimpleContactForm.csproj index 311619e..ea8bbea 100644 --- a/src/cloudscribe.SimpleContactForm/cloudscribe.SimpleContactForm.csproj +++ b/src/cloudscribe.SimpleContactForm/cloudscribe.SimpleContactForm.csproj @@ -1,8 +1,8 @@ - + A simple contact form for ASP.NET Core - 8.0.0 + 8.1.0 net8.0 Joe Audette true @@ -36,8 +36,8 @@ - - + + diff --git a/update_version.ps1 b/update_version.ps1 index 644cf46..1e4919a 100644 --- a/update_version.ps1 +++ b/update_version.ps1 @@ -15,9 +15,11 @@ # Define the directory containing the .csproj files $directory = "src" -# Define the new version -$newVersion = "8.1.0" -$newWildcardVersion = "8.1.*" +# 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 @@ -27,11 +29,18 @@ foreach ($file in $csprojFiles) { $content = Get-Content -Path $file.FullName # Update the version of cloudscribe package references, except for cloudscribe.HtmlAgilityPack and cloudscribe.DbHelpers - $updatedContent = $content -replace '(?<=$newVersion" + $updatedContent = $updatedContent -replace $versionPattern, $replacement - # Update the element if it matches the 8.0.* pattern - $updatedContent = $updatedContent -replace '8\.0\.\d+', "$newVersion" # Write the updated content back to the .csproj file Set-Content -Path $file.FullName -Value $updatedContent