Drone plugins > GitHub Pages
GitHub Pages
by drone-plugins
The GitHub Pages plugin is used to publish static websites to GitHub. The following configuration uses the gh-pages plugin to publish a website.
Example
kind: pipeline
name: default
steps:
- name: publish
image: plugins/gh-pages
settings:
username: octocat
password: p455w0rd
pages_directory: public/
Properties
username
stringrequiredGitHub username for pushing changes
Default: none
password
stringrequiredGitHub password for pushing changes
Secret recommendedDefault: none
ssh_key
stringoptionalSSH key to use for pushing changes
Secret recommendedDefault: none
upstream_name
stringoptionalGitHub upstream target
Default: origin
target_branch
stringoptionalGitHub target branch
Default: gh-pages
temporary_base
stringoptionalTemporary directory to pull gh-pages branch
Default: .tmp
pages_directory
stringrequiredThe directory of content to publish
Default: docs