release2github

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 6 Imported by: 0

README

release

Build Status

Release files and changelog to github release page.

Compile

Latest Golang.

git clone https://github.com/tosone/release.git
cd release
make
Usage

Releasewith a config file, default is.release`. And execute a path should be a git working repository. Before release files you should add a tag for this repository, or it will fail.

Username: tosone # Github username
Repo: release # repo name 
Branch: master # Build branch 
Token: token # Github token, generate a token here https://github.com/settings/tokens
ClientID: ClientID # New a OAuth app that can visit https://api.github.com more times. https://github.com/settings/developers
ClientSecret: ClientSecret # OAuth app client Secret.
Rewrite: true # Is rewrite the release or not. 
Draft: false # Is just a Draft or not.
Prerelease: false # Is prerelease or not.
Runtime:
  Timeout: 10 # Wait for visit https://api.github.com max timeout.
  Debug: true # Print the debug information.
Release:
  Files: # All of the files that will be upload release page.
    - release/*
    - debug/*
    - releasefile
  Compress: true # Is compress the upload files or not.
  CompressWith: # The files that will compress with upload file.
    - with/*
    - LICENSE
release --help

Release files and changelog to github release page.

Usage:
  release [command]

Available Commands:
  create      Create a new release on github release page.
  delete      Delete a tag release from github release page.
  help        Help about any command
  version     Get version

Flags:
  -h, --help   help for release

Use "release [command] --help" for more information about a command.
Env
  • All the config can be set in environment with prefix RELEASE and Separate with _.
  • Token can be set as a variable in environment.
  • Token can be set as RELEASE_TOKEN.
  • RELEASE_TOKEN should be set in your env.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
req

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL