File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ permissions:
6868 pull-requests : write # to write comments to PRs
6969 statuses : write # to update the status of the workflow from linter
7070
71+ jobs :
7172jobs :
7273 Get-Settings :
7374 uses : ./.github/workflows/Get-Settings.yml
@@ -145,6 +146,20 @@ jobs:
145146 Version : ${{ inputs.Version }}
146147 WorkingDirectory : ${{ inputs.WorkingDirectory }}
147148
149+ Build-Site :
150+ if : ${{ fromJson(needs.Get-Settings.outputs.Settings).Build.Site.Skip != true }}
151+ needs :
152+ - Get-Settings
153+ - Build-Docs
154+ uses : ./.github/workflows/Build-Site.yml
155+ with :
156+ Name : ${{ fromJson(needs.Get-Settings.outputs.Settings).Name }}
157+ Debug : ${{ inputs.Debug }}
158+ Prerelease : ${{ inputs.Prerelease }}
159+ Verbose : ${{ inputs.Verbose }}
160+ Version : ${{ inputs.Version }}
161+ WorkingDirectory : ${{ inputs.WorkingDirectory }}
162+
148163 Test-Module :
149164 if : ${{ needs.Build-Module.result == 'success' && !cancelled() && needs.Get-Settings.outputs.PSModuleTestSuites != '[]' }}
150165 needs :
Original file line number Diff line number Diff line change @@ -239,12 +239,12 @@ jobs:
239239 Version : ${{ inputs.Version }}
240240
241241 Publish-Module :
242- if : ${{ needs.Get-Settings.result == 'success' && needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Docs .result == 'success' && !cancelled() && github.event_name == 'pull_request' }}
242+ if : ${{ needs.Get-Settings.result == 'success' && needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Site .result == 'success' && !cancelled() && github.event_name == 'pull_request' }}
243243 needs :
244244 - Get-Settings
245245 - Get-TestResults
246246 - Get-CodeCoverage
247- - Build-Docs
247+ - Build-Site
248248 runs-on : ubuntu-latest
249249 steps :
250250 - name : Checkout Code
@@ -286,12 +286,12 @@ jobs:
286286 VersionPrefix : ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.VersionPrefix }}
287287
288288 Publish-Site :
289- if : ${{ needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Docs .result == 'success' && !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.merged == true }}
289+ if : ${{ needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Site .result == 'success' && !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.merged == true }}
290290 needs :
291291 - Get-Settings
292292 - Get-TestResults
293293 - Get-CodeCoverage
294- - Build-Docs
294+ - Build-Site
295295 permissions :
296296 pages : write # to deploy to Pages
297297 id-token : write # to verify the deployment originates from an appropriate source
You can’t perform that action at this time.
0 commit comments