busser / tfautomv

Generate Terraform moved blocks automatically for painless refactoring
https://github.com/busser/tfautomv
Apache License 2.0
693 stars 24 forks source link

Brew Tap #2

Closed StanGirard closed 2 years ago

StanGirard commented 2 years ago

Added tap release to GoRelease in order to allow users to install it via brew.

Based on this:

StanGirard commented 2 years ago

Running goreleaser release --skip-publish --skip-validate on my branch works and build the tfautomv.rb file for homebrew succesfully.

Here is the file:

# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Tfautomv < Formula
  desc ""
  homepage "https://github.com/padok-team/tfautomv"
  version "0.2.0"

  on_macos do
    if Hardware::CPU.arm?
      url "https://github.com/padok-team/tfautomv/releases/download/v0.2.0/tfautomv_0.2.0_Darwin_arm64.tar.gz"
      sha256 "b52f9af58b0d7a9ea6b92ce868e25342ffa1cd8d435195879c4f5b736f486d8a"

      def install
        bin.install "tfautomv"
      end
    end
    if Hardware::CPU.intel?
      url "https://github.com/padok-team/tfautomv/releases/download/v0.2.0/tfautomv_0.2.0_Darwin_x86_64.tar.gz"
      sha256 "9b5a05f0e9841312b661a7f9fcd5077292d6f0e7dfb90385b3b37aaa45ca05db"

      def install
        bin.install "tfautomv"
      end
    end
  end

  on_linux do
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/padok-team/tfautomv/releases/download/v0.2.0/tfautomv_0.2.0_Linux_arm64.tar.gz"
      sha256 "a79209305d9f2280c6440a982c71ffa8cc3404ca051f3866c6a0aa4136e77840"

      def install
        bin.install "tfautomv"
      end
    end
    if Hardware::CPU.intel?
      url "https://github.com/padok-team/tfautomv/releases/download/v0.2.0/tfautomv_0.2.0_Linux_x86_64.tar.gz"
      sha256 "4bdecdc98990835055a2841c9e4d198446b01316add511ff73315868fffe603b"

      def install
        bin.install "tfautomv"
      end
    end
  end
end