Skip to content

Commit b04082b

Browse files
feat(ci): pass through publish domain during deploy
Signed-off-by: Victor Adossi <[email protected]>
1 parent 470026e commit b04082b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/deploy.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ on:
1313
description: |
1414
The git ref to deploy (ex. 'main', 'branch', '<commit sha>')
1515
16+
publish-domain:
17+
required: false
18+
type: string
19+
default: "component-model.bytecodealliance.org"
20+
description: |
21+
The domain to which to publish (ex. 'component-model.bytecodealliance.org')
22+
1623
permissions:
1724
contents: read
1825
pages: write
@@ -26,7 +33,6 @@ env:
2633
MDBOOK_VERSION: 0.4.21
2734
MDBOOK_ALERTS_VERSION: 0.6.7
2835
MDBOOK_LINKCHECK_VERSION: 0.7.7
29-
PUBLISH_DOMAIN: component-model.bytecodealliance.org
3036
ARTIFACT_PATH: ./component-model/book/html
3137

3238
jobs:
@@ -41,6 +47,7 @@ jobs:
4147
uses: ./.github/actions/mdbook
4248
with:
4349
publish-pages-artifact: true
50+
publish-domain: ${{ inputs.publish-domain || 'component-model.bytecodealliance.org' }}
4451

4552
deploy:
4653
if: ${{ github.repository_owner == 'bytecodealliance' }}

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ book_output_dir := env_var_or_default("BOOK_OUTPUT_DIR", "./component-model/book
1515
@_default:
1616
{{just}} --list
1717

18-
# Print the directory the book was output to
18+
# Print the directory the book is/would be output to
1919
[group('meta')]
2020
@print-book-dir:
2121
echo -n {{book_output_dir}}

0 commit comments

Comments
 (0)