GithubHelp home page GithubHelp logo

releasemaker's Introduction

ReleaseMaker

A simple command-line tool to manage GitHub releases. With this tool, you can create new releases, upload assets to existing releases, and delete releases by tag name.

Installation

Quick install

repo="releaseMaker"; name="releaseMaker"; os=$(uname | tr '[:upper:]' '[:lower:]'); arch=$(uname -m); case $arch in x86_64) arch="amd64" ;; arm64) arch="arm64" ;; esac; url="https://github.com/8ff/${repo}/releases/download/latest/${name}.${os}.${arch}"; curl -L $url -o ${name} && chmod +x ${name}

Grab a binary from releases or clone the repository and build the project using Go:

git clone https://github.com/8ff/releaseMaker.git
cd releaseMaker
go build

Usage

Make sure to set your GitHub token as an environment variable:

export GITHUB_TOKEN=your_github_token

Create a New Release

Create a new release for the specified repository:

./your-binary create [owner/repo] [tag] [name] [body]
  • owner/repo: The owner and repository name, separated by a slash.
  • tag: The tag name for the release.
  • name: The name of the release.
  • body: The body text of the release.

Upload an Asset to a Release

Upload a file as an asset to an existing release by tag name:

./your-binary upload [owner/repo] [tag] [file] [assetName]
  • owner/repo: The owner and repository name, separated by a slash.
  • tag: The tag name of the release to upload the asset to.
  • file: The path to the file to upload.
  • assetName: The name of the asset in the release.

Delete a Release

Delete an existing release by tag name:

./your-binary delete [owner/repo] [tag]
  • owner/repo: The owner and repository name, separated by a slash.
  • tag: The tag name of the release to delete.

Contributing

Feel free to open issues or submit pull requests. All contributions are welcome!

License

GNU Affero General Public License v3.0

releasemaker's People

Contributors

chiefmarlin avatar

Watchers

 avatar  avatar

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.