Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

git-deploy-directory

webkong3MIT1.0.2

Deploy a directory to a git branch. You can use the configuration file to deploy easily.Useful to deploy to GitHub Pages.

git-deploy, git-deploy-directory, git, deploy, cli

readme

English|简体中文

git-deploy-directory

Deploy a directory to a git branch. You can use the configuration file to deploy easily.Useful to deploy to GitHub Pages.

Installation

$ npm install -D git-deploy-directory
or 
$ yarn add -D git-deploy-directory

Usage

// init 

$ git deploy init //Initialize the configuration file

Configuration file

{
  "type": "git",
  "repo": "https://github.com/webkong/xxxx.git",  // git repo
  "branch": "docs", // git branch 
  "dir": "build" // You are going to deploy directory
}
// deploy
$ git deploy push

License

MIT

Author

me