File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ inputs:
13
13
description : Source file path.
14
14
DESTINATION :
15
15
description : Destination path, relative to repository root.
16
+ ARTIFACT_NAME :
17
+ description : Name for build artifact. Required when building multiple documents in same job.
18
+ default : " spec-prod-result"
16
19
BUILD_FAIL_ON :
17
20
description : Exit behaviour on errors.
18
21
default : fatal
@@ -123,7 +126,7 @@ runs:
123
126
path : |-
124
127
${{ steps.build.outputs.gh && fromJson(steps.build.outputs.gh).dest }}
125
128
${{ steps.build.outputs.w3c && fromJson(steps.build.outputs.w3c).dest }}
126
- name : spec-prod-result
129
+ name : ${{ inputs.ARTIFACT_NAME }}
127
130
retention-days : 5
128
131
129
132
- name : Validate hyperlinks
Original file line number Diff line number Diff line change @@ -184,19 +184,23 @@ jobs:
184
184
max-parallel: 1
185
185
matrix:
186
186
include:
187
- - source: spec.html
187
+ - name: spec-0
188
+ source: spec.html
188
189
destination: index.html
189
190
echidna_token: ECHIDNA_TOKEN_SPEC
190
- - source: spec-1
191
+ - name: spec-1
192
+ source: spec-1
191
193
destination: the-spec
192
194
echidna_token: ECHIDNA_TOKEN_SPEC1
193
- - source: spec-2
195
+ - name: spec-2
196
+ source: spec-2
194
197
# destination defaults to spec-2/index.html
195
198
# echidna_token defaults to no publication to w3.org/TR
196
199
steps:
197
200
- uses: actions/checkout@v4
198
201
- uses: w3c/spec-prod@v2
199
202
with:
203
+ ARTIFACT_NAME: ${{ matrix.name }} # required when building multiple documents in same job
200
204
SOURCE: ${{ matrix.source }}
201
205
DESTINATION: ${{ matrix.destination }}
202
206
GH_PAGES_BRANCH: gh-pages
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ Location of generated HTML document and other assets. This is useful when you've
32
32
| ` my-spec-src ` | ` my-spec-out ` | ` ./my-spec-out/index.html ` | ` ./my-spec-out/ ` |
33
33
| ` index.html ` | ` index.html ` | ` ./index.html ` | ` ./ ` |
34
34
35
+ ## ` ARTIFACT_NAME `
36
+
37
+ Name for artifact which will be uploaded to workflow run. Required when building multiple documents in same job.
38
+
39
+ ** Possible values:** Any valid artifact name.
40
+
41
+ ** Default:** ` "spec-prod-result" ` .
42
+
35
43
## ` BUILD_FAIL_ON `
36
44
37
45
Define exit behaviour on build errors or warnings.
You can’t perform that action at this time.
0 commit comments