Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brocessing/ghp

:package: Automagically deploy your app on Github pages
https://github.com/brocessing/ghp

deployment github-pages static-site

Last synced: 3 months ago
JSON representation

:package: Automagically deploy your app on Github pages

Awesome Lists containing this project

README

        


logo


ghp


Automagically deploy your app on Github pages




License



Standard



Standard






## CLI

### installation
```sh
npm install -g ghp
```

### usage
```
ghp
ghp DIRECTORY
ghp DIRECTORY --force
ghp DIRECTORY --cache
ghp DIRECTORY --message
ghp DIRECTORY --branch gh-pages
ghp DIRECTORY --append
ghp --help

Options:
-h, --help Show this screen.
-b, --branch=
Specify the branch to deploy to (default: gh-pages).
-m, --message= Use the given as the commit message.
-a, --append= Copy to the pushed directory another directory.
-f, --force Deploy without checking for uncommited changes.
-q, --quiet Suppress step summary messages.
-c, --cache= Specify a cache directory.

```

## Node.js

### installation
```sh
npm install -S ghp
```

### usage
```js
var ghp = require('ghp')
ghp.deploy(path, options)
```

### options

+ **`options.branch`**
+ branch to deploy to
+ *default `'gh-pages'`*

+ **`options.message`**
+ commit message for the gh-pages branch
+ *default `':package: Update gh-pages'`*

+ **`options.append`**
+ append to the root of the pushed directory another path
+ *default `false`*

+ **`options.quiet`**
+ suppress step summary messages
+ *default `false`*

+ **`options.force`**
+ skip the uncommited changes step
+ *default `false`*

+ **`options.cwd`**
+ git cwd
+ *default `process.cwd()`*

## License
[MIT](https://tldrlegal.com/license/mit-license).