Giter Site home page Giter Site logo

gh-pages-with-token's Introduction

gh-pages-with-token

Build Status npm dependencies devDependencies

A small utility to pass a GitHub token in Travis CI.

Installation

$ npm i --save-dev gh-pages-with-token

Usage

package.json

{
  // ...
  "scripts": {
    "deploy": "gh-pages-with-token -d dist"
  }
}

Why?

This is a small utility that will utilize a GH_TOKEN environment variable in Travis CI. It will use this to construct a url that can be pushed to when using the gh-pages package. This will set the -r flag for you. Any other flags set will be passed along.

License

Copyright © 2016 Neil Kistner

Released under the MIT license. See license for details.

gh-pages-with-token's People

Contributors

wyze avatar

Stargazers

Jeff Tian avatar Kay van Bree avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jeff-tian

gh-pages-with-token's Issues

published version lacks --repo option

For some reason published version has no -r option:

$ ./node_modules/.bin/gh-pages-with-token --help

  A small utility to pass a GitHub token in Travis CI.

  Usage
    $ gh-pages-with-token

  Options
    -d, --dist <dist>        Base directory for all source files
    -s, --src <src>          Pattern to select which files should be published
    -x, --silent             Do not output the repository url
    -b, --branch <branch>    Name of the branch you'll be pushing to
    -o, --remote <name>      The name of the remote
    -m, --message <message>  Commit message
    -t, --dotfiles           Include dotfiles
    -a, --add                Only add, and never remove existing files
    -n, --no-push            Commit only (with no push)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.