Coder Social home page Coder Social logo

stepin / wercker-step-ghr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tcnksm/wercker-step-ghr

0.0 1.0 0.0 8.17 MB

Wercker step for tcnksm/ghr, create Github Release and uploading artifacts

Home Page: https://app.wercker.com/#applications/5438f4d12131b5070f0d4eee/tab/details

License: MIT License

Shell 100.00%

wercker-step-ghr's Introduction

Wercker step ghr MIT License

wercker status

This is wercker deploy step for tcnksm/ghr, create Github Release and uploading artifacts there.

Usage

In the wercker.yml of your application use the following step definition:

steps:
   - tcnksm/ghr:
       token: $GITHUB_TOKEN
       input: dist

To use this step, you need to set $GITHUB_TOKEN and input directory. About $GITHUB_TOKEN see at Github Token section. input directory is where your artifacts you want to upload are in and it would be in ${WERCKER_OUTPUT_DIR} passed from build step.

Options

You can control build with some option from wercker.yml:

steps:
   - tcnksm/ghr:
       token: $GITHUB_TOKEN
       input: dist
       version: v0.1.0         # Relase tag default is `pre-release`
       pre_release: true       # Relase as pre-release default is false
       replace: true           # Replace release if it exists

Example

See tcnksm-sample/wercker-golang. This simple golang repository is continuously cross-compiled and relase as pre-prerelease, you can always provide new builds to user.

GitHub token

To be able to use this step, you will first need to create a GitHub token with an account which has enough permissions to be able to create releases. First goto Account settings, then goto Applications for the user. Here you can create a token in the Personal access tokens section. For a private repository you will need the repo scope and for a public repository you will need the public_repo scope. Then it is recommended to save this token on wercker as a protected environment variable.

Author

tcnksm

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.