Skip to content

Commit

Permalink
tools deploy enhanced post-deploy warnings
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
silverqx committed May 5, 2024
1 parent fd56d7e commit 2eee53d
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions tools/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -323,23 +323,20 @@ function Test-RegExResult {
throw "The '$RegEx' regex failed."
}

# Print warning about Gentoo ebuild
function Write-GentooEbuildWarning {
[OutputType([void])]
Param()

NewLine
Write-Host 'Create a new tinyorm Gentoo ebuild after bumping TinyOrm version number' `
-ForegroundColor Red
}
# Post deploy warnings
# ---

# Print warning about deploying TinyORM-github.io documentation
function Write-TinyORMDocsWarning {
# Print post-deploy warnings and messages about what is needed next to finish the deployment
function Write-PostDeployWarnings {
[OutputType([void])]
Param()

Write-Host 'Deploy TinyORM-github.io documentation after bumping TinyOrm version numbers' `
-ForegroundColor Red
Write-Header 'Post-deploy actions needed after bumping TinyOrm version numbers'

Write-Error (" - remove all 'TinyORM-builds-cmake\Drivers-msys2-u-*' build trees " +
'as tst_Versions test case will fail (ccache bug)')
Write-Error ' - create a new tinyorm Gentoo ebuild'
Write-Error ' - deploy TinyORM-github.io documentation'
NewLine
}

Expand Down Expand Up @@ -1753,9 +1750,8 @@ Invoke-UpdateVcpkgPorts
# Merge develop to main and and push to origin/main
Invoke-MergeDevelopAndDeploy -Message 'Vcpkg ports were updated and deployed successfully. 🥳'

# Warnings on what must be done after the deployment
Write-GentooEbuildWarning
Write-TinyORMDocsWarning
# Warnings about what is needed next to finish the deployment
Write-PostDeployWarnings

<#
.Synopsis
Expand Down

0 comments on commit 2eee53d

Please sign in to comment.