Project

ghdeploy

0.0
No commit activity in last 3 years
No release in over 3 years
Run git deploy within a git repository to create a GitHub deployment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

~> 1.5
~> 4.0
~> 0.20
 Project Readme

GitHub Deploy

This gem adds a command to git for publishing GitHub deployments.

Installation

gem install 'ghdeploy'

Setup

The only additional setup is to create a personal access token in Github and set the environment variable.

export GHDEPLOY_TOKEN=<token-from-github>

If you're using an internal github server, you'll want to specify a host-specific token. For example, if you're internal host is https://my-enterprise-github.com, then specify a token like so:

export GHDEPLOY_MY_ENTERPRISE_GITHUB_COM_TOKEN=<token-from-internal-github>

Usage

From within a git repository run:

Basic deploy of master branch to production:

git deploy production master

Note *If you are using RVM and are the following error

git: 'deploy' is not a git command. See 'git --help'.

while trying to run the above command, run this first:

rvm use 2.3.6