Skip to content

Commit

Permalink
Added target_path new parameter (#6)
Browse files Browse the repository at this point in the history
* new param

* change from dir to path

* change from dir to path
  • Loading branch information
toniher authored Mar 28, 2022
1 parent f52200f commit a924a40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Input Default Required Description
source files
``target_branch`` ``'gh-pages'`` ``false`` Git branch where assets will
be deployed
``target_path`` ``'.'`` ``false`` Directory in Github Pages
where Sphinx Pages will be
placed
``repository_path`` ``'.'`` ``false`` Relative path under
``$GITHUB_WORKSPACE`` to
place the repository.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: 'Git branch where Github Pages will be deployed'
required: false
default: 'gh-pages'
target_path:
description: 'Path in Github Pages where Sphinx Pages will be placed'
required: false
default: '.'
repository_path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
required: false
Expand Down
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ rm -vrf *
echo Copying HTML documentation to repository
# Remove unused doctree
rm -rf $tmp_dir/.doctrees
cp -vr $tmp_dir/. .
cp -vr $tmp_dir/. $INPUT_TARGET_PATH
echo Adding HTML documentation to repository index
git add .
git add $INPUT_TARGET_PATH
echo Recording changes to repository
git commit --allow-empty -m "Add changes for $GITHUB_SHA"
echo ::endgroup::

0 comments on commit a924a40

Please sign in to comment.