Giter Club home page Giter Club logo

dyversion's Introduction

dyversion

The release.sh script in this repository does the following:

  1. Reads the non-committed file current_version.txt. It contains the "current release" in the shape of major.minor, but could be whatever you want.
  2. Appends today's date in the shape of YYYY-MM-DD. This is the release-id.
  3. Replaces the template {{VERSION}} in main.aplf with this release-id.
  4. Lays down a git "tag" to be the release-id.
  5. Creates a new GitHub release.
  6. Uploads the file main.aplf to the release.
  7. Replaces the patched main.aplf with the backup sed created, so that the template remains.

A git tag is a 'bookmark' to a commit SHA. It can be anything. We're using a tagging strategy of

major.minor-YYYY-MM-DD

A release is a tag. We inject the tag name into a function called Version, residing in main.aplf before we create, and upload the asset to a GitHub release.

To make a new release using this approach, you need:

  1. GitHub token available as an environment variable called GITHUB_TOKEN.
  2. The jq utility (a streaming json processor) installed.

dyversion's People

Contributors

xpqz 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.