This repository was archived by the owner on Dec 25, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Setup workflow at branch `master` or `docs` may be a good idea.
2626 - uses: seanzhengw/sphinx-pages@master
2727 with:
2828 github_token: ${{ secrets.GITHUB_TOKEN }}
29+ create_readme: true
2930
3031## Example Usage for standalone Sphinx documentation
3132
Original file line number Diff line number Diff line change 88 github_token :
99 description : ' Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
1010 required : true
11+ create_readme :
12+ description : ' Auto create a README.md file at branch gh-pages root with repo/branch/commit links'
13+ default : false
1114outputs :
1215 name :
1316 description : ' Author name'
Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ git config user.email $author_email
8282echo " sphinx-build -b html $docs_src /source $docs_html -E -d $sphinx_doctree "
8383sphinx-build -b html $docs_src /source $docs_html -E -d $sphinx_doctree
8484
85+ # auto creation of README.md
86+ if [ " $INPUT_CREATE_README " = true ] ; then
87+ echo " Create file README.md"
88+ echo " GitHub Pages of [$GITHUB_REPOSITORY ](https://github.com/$GITHUB_REPOSITORY .git)" > README.md
89+ echo " ===" >> README.md
90+ echo " Sphinx html documentation of [$docs_sha8 ](https://github.com/$GITHUB_REPOSITORY /tree/$GITHUB_SHA )" >> README.md
91+ fi
92+
8593# commit and push
8694echo " git add ."
8795git add .
You can’t perform that action at this time.
0 commit comments