Skip to content

Release

Martin Helmut Fieber edited this page Jun 13, 2021 · 7 revisions

Release

This page will describe how to create and publish a new Litr release. The current release process is half manual, half automated, therefore perfectly balanced.

Create a release

Inside the repository run the following command (you already need Litr installed) and follow the instructions:

litr release

This will create a new release under build/publish containing all needed files.

macOS

The current release is a macOS release for Homebrew. The formula can be found here: https://github.com/krieselreihe/homebrew-litr

The files under build/publish are the files that need to be attached to the GitHub release (all of them). Take the url to the archive as well as the generated sha256 hash. For example:

https://github.com/krieselreihe/litr/releases/download/v1.0.0-alpha.1/litr-mac-1.0.0-alpha.1.tar.gz
https://github.com/krieselreihe/litr/releases/download/v1.0.0-alpha.1/litr-mac-1.0.0-alpha.1-sha256.txt

Update the formula in https://github.com/krieselreihe/homebrew-litr/blob/main/Formula/litr.rb to the latest release:

class Litr < Formula
  desc "Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language."
  homepage "https://github.com/krieselreihe/litr"
  url "..."     # Url to the tar.gz file
  sha256 "..."  # Here comes the hash
  version "..." # Full version number

  def install
    bin.install "litr"
  end
end

Push the new changes to the homebrew-litr repo and create the GitHub release.

Done.

Other platform

Currently not supported [#37, #38].

Clone this wiki locally