Git Product home page Git Product logo

releaser's Introduction

Automatic Github Release Script

This bash script automates the process of creating a new Github release with an incremented semver version. The script uses the gh command line tool to grab the latest release version, increments the minor version, and then creates a new release with the newly generated semver tag.

Prerequisites

This script assumes that your Github repository is using semver versioning and that your latest release version is in the format vX.Y.Z. If your repository is using a different versioning scheme, or if the latest release version is not in the expected format, this script may not work as intended.

Before running this script, you must have the following installed on your system:

  • gh command line tool
  • awk command line tool

Usage

  1. Open a terminal window and navigate to the directory containing the script.
  2. Add the script to your system's path by running the command ln -s /path/to/release.sh /usr/local/bin/release.
  3. In the terminal, run the script by typing release followed by the branch name (if different from "main").

For example, to create a new release on the "my-feature-branch" branch, run the command:

release my-feature-branch

Note that the release.sh file must be executable and located in a directory that is included in your system's $PATH environment variable for the release command to work. By running the ln -s command as shown in step 4, you can link the script to the /usr/local/bin directory, which is a common location for user-installed scripts.

releaser's People

Contributors

aloutfi avatar

Watchers

 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.