Skip to content

Commit 42b7b41

Browse files
committed
[ci][docs] Allow for choosing an eos upload directory.
Add two job inputs for the workflow trigger. These should allow for choosing a ROOT version to build docs for, and for choosing a directory where the generated page should be served. Omitting the page means no upload to eos.
1 parent a55a90d commit 42b7b41

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/root-docs-ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ on:
1717
type: boolean
1818
required: false
1919
default: false
20-
# docu_input: # opportunity: overwrite makeinput.sh with these args
21-
# description: Folders to build documentation for. All folders are built if empty.
22-
# type: string
23-
# default: ""
24-
# required: false
20+
input_branch:
21+
description: 'Which branch to build documentation for'
22+
type: string
23+
required: false
24+
default: 'master'
25+
eos_upload_directory:
26+
description: 'Make documentation available at <root-website>/doc/<directory>. Leave empty for skipping the upload to eos.'
27+
type: string
28+
required: false
29+
default: 'master'
2530

2631
jobs:
2732
build-docs:
@@ -36,8 +41,8 @@ jobs:
3641
PLATFORM: alma10
3742
DOC_DIR: master
3843
DOC_LOCATION: /github/home
39-
BASE_REF: master
40-
WEB_DIR_NAME: master
44+
BASE_REF: ${{ inputs.input_branch == null && 'master' || inputs.input_branch }}
45+
WEB_DIR_NAME: ${{ inputs.eos_upload_directory == null && '' || 'master' }}
4146
TAR_NAME: htmlmaster.tar
4247
OVERRIDES: "testing=Off roottest=Off"
4348

@@ -118,6 +123,7 @@ jobs:
118123
if-no-files-found: error
119124

120125
- name: Sync documentation to EOS
126+
if: ${{ env.WEB_DIR_NAME != null && env.WEB_DIR_NAME != '' }}
121127
env:
122128
RWEBEOS_KT: ${{ secrets.RWEBEOS_KT }}
123129
KRB5USER: ${{ secrets.KRB5USER }}

0 commit comments

Comments
 (0)