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:
68
68
pull-requests : write # to write comments to PRs
69
69
statuses : write # to update the status of the workflow from linter
70
70
71
+ jobs :
71
72
jobs :
72
73
Get-Settings :
73
74
uses : ./.github/workflows/Get-Settings.yml
@@ -145,6 +146,20 @@ jobs:
145
146
Version : ${{ inputs.Version }}
146
147
WorkingDirectory : ${{ inputs.WorkingDirectory }}
147
148
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
+
148
163
Test-Module :
149
164
if : ${{ needs.Build-Module.result == 'success' && !cancelled() && needs.Get-Settings.outputs.PSModuleTestSuites != '[]' }}
150
165
needs :
Original file line number Diff line number Diff line change @@ -239,12 +239,12 @@ jobs:
239
239
Version : ${{ inputs.Version }}
240
240
241
241
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' }}
243
243
needs :
244
244
- Get-Settings
245
245
- Get-TestResults
246
246
- Get-CodeCoverage
247
- - Build-Docs
247
+ - Build-Site
248
248
runs-on : ubuntu-latest
249
249
steps :
250
250
- name : Checkout Code
@@ -286,12 +286,12 @@ jobs:
286
286
VersionPrefix : ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.VersionPrefix }}
287
287
288
288
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 }}
290
290
needs :
291
291
- Get-Settings
292
292
- Get-TestResults
293
293
- Get-CodeCoverage
294
- - Build-Docs
294
+ - Build-Site
295
295
permissions :
296
296
pages : write # to deploy to Pages
297
297
id-token : write # to verify the deployment originates from an appropriate source
You can’t perform that action at this time.
0 commit comments