Skip to content

Commit a9e3d2f

Browse files
authored
Merge pull request #65 from jbusecke/patch-4
Make path to output an input argument
2 parents ee36642 + 53e28b4 commit a9e3d2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-book.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ on:
3333
required: false
3434
default: 'jupyter-book build .'
3535
type: string
36+
output_path:
37+
description: 'Path to the built html content relative to `path_to_notebooks`'
38+
required: false
39+
default: '_build/html'
40+
type: string
3641

3742
secrets:
3843
ARM_USERNAME:
@@ -193,7 +198,7 @@ jobs:
193198
if [ -f book.zip ]; then
194199
rm -rf book.zip
195200
fi
196-
zip -r book.zip ${{ inputs.path_to_notebooks }}/_build/html
201+
zip -r book.zip ${{ inputs.path_to_notebooks }}/ ${{ inputs.output_path }}
197202
198203
- name: Upload zipped book artifact
199204
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)