diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0f28271..3d2d8a1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,4 +39,5 @@ jobs: version: latest args: release --skip-validate --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index a58a7c4..656b588 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,7 +21,7 @@ archives: format: tar.gz nfpms: - id: package_nfpms - package_name: awstools + package_name: audax builds: - dynamo-browse vendor: lmika @@ -34,10 +34,11 @@ nfpms: - rpm bindir: /usr/local/bin brews: - - name: awstools + - name: audax tap: owner: lmika - name: awstools + name: homebrew-audax + token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}" folder: Formula homepage: https://audax.tools description: TUI tools for AWS administration diff --git a/Formula/awstools.rb b/Formula/awstools.rb deleted file mode 100644 index d230af0..0000000 --- a/Formula/awstools.rb +++ /dev/null @@ -1,40 +0,0 @@ -# typed: false -# frozen_string_literal: true - -# This file was generated by GoReleaser. DO NOT EDIT. -class Awstools < Formula - desc "TUI tools for AWS administration" - homepage "https://audax.tools" - version "0.0.4" - license "MIT" - - on_macos do - if Hardware::CPU.arm? - url "https://github.com/lmika/audax/releases/download/v0.0.4/audax_0.0.4_darwin_arm64.tar.gz" - sha256 "6aca5616739767094c7af7fe755467c1cbb423824fee8d84364cb9db4c2b9214" - - def install - bin.install "dynamo-browse" - end - end - if Hardware::CPU.intel? - url "https://github.com/lmika/audax/releases/download/v0.0.4/audax_0.0.4_darwin_amd64.tar.gz" - sha256 "f3e38cfdde782f83874518191cab579f6ea8d37576e0f1cbf0bfd60e29cb1a73" - - def install - bin.install "dynamo-browse" - end - end - end - - on_linux do - if Hardware::CPU.intel? - url "https://github.com/lmika/audax/releases/download/v0.0.4/audax_0.0.4_linux_amd64.tar.gz" - sha256 "59fc640d0ae863a9eb71766aea383eb4fefb76c33e5bd93afdd74fa21b1645bf" - - def install - bin.install "dynamo-browse" - end - end - end -end