tuftsrt/sphinx-to-branch

build sphinx documentation and push results to gh-pages

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
source-branchBranch to build documentation from. Defaults to the triggering branch no${{ github.ref_name }}
destination-branchBranch to push built the documentation to. Defaults to `gh-pages` branch. nogh-pages
clear-destinationWhether to delete all files from the destination branch before building. Must be set to "true" for deletion to occur. Other values ignored. nofalse
keep-itemsNewline-delimited list of glob patterns to keep when destination branch set to be cleared. Ignored if destination branch not set to be cleared. noCNAME
remove-itemsNewline-delimited list of glob patters to delete from the destination branch before building. Ignored if destination branch set to be cleared. no""
source-directoryDirectory on source branch containing documentation source files. Defaults to repository root. no""
destination-directoryDirectory on destination branch to push the built documentation to. Defaults to repository root. no""
environment-fileConda environment YML file on source branch to install dependencies from. Must contain Sphinx and any other build dependencies. Defaults to `environment.yaml` in repository root. noenvironment.yaml
build-commandCommand to build the documentation. Uses `sphinx-build` if omitted. nosphinx-build
build-argumentsAdditional optional arguments to pass to the build command. no""
add-nojekyllWhether to add a `.nojekyll` file to the root of the destination branch. Must be set to "true" for the file to be added. Other values ignored. notrue
commit-messageMessage to use when committing built documentation to destination branch. Defaults to the SHA of the triggering commit. no${{ github.sha }}
use-botWhether to use the github-actions[bot] account to commit and push changes. Must be set to "true" for the bot to be used. Other values ignored. (Author of the last commit on the source branch used by default.) nofalse
dry-runWhether to run the action without pushing to the destination branch. Must be set to "true" for dry run to occur. Other values ignored. Can be used as a pull request status check confirming a successful build. (Destination branch will need to be cleared to ensure a clean build.) nofalse
use-expectWhether to use `expect` to perform actions based on build console output. Must be set to "true" for `expect` to be used. Other values ignored. nofalse
expect-timeoutNumber of seconds `expect` will wait for the build to complete. Must be an integer. Defaults to `-1`, which disables the timeout. Exceeding the time limit causes the build to quit and exit with success. Use `expect-pattern-action` to configure an alternate timeout behavior. no-1
expect-pattern-actionPattern-action pairs passed to `expect` when monitoring console output. See `man expect` and action README for examples and syntax details. Any timeout action must be specified here using the `timeout` pattern. Variable `$EXPECT_TIMEOUT` (value of `expect-timeout`) available for use. no""

no outputs