From 3cc5b31beb295c5be4641d1a4ac6f748d82cfcf6 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Fri, 12 Sep 2025 11:40:03 -0600 Subject: [PATCH] ci: Updated release flow for gman --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ Formula/gman.rb | 23 +++++++++++++++++++++++ README.md | 29 +++++++++++++++++++++++++++-- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 Formula/gman.rb diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0a153b8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Release G-Man Homebrew tap +on: [push] +jobs: + test: + strategy: + matrix: + runs-on: ['macOS-latest', 'ubuntu-latest'] + + runs-on: ${{ matrix.runs-on }} + + steps: + - uses: actions/checkout@v1 + - name: Build and release Linux G-Man Tap + if: matrix.runs-on == 'ubuntu-latest' + shell: bash + run: | + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bash_profile + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew tap dark-alex-17/gman $(pwd) + brew install --build-bottle --verbose gman + gman -h + - name: Build and release MacOS G-Man Tap + if: matrix.runs-on == 'macOS-latest' + shell: bash + run: | + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/runner/.bash_profile + eval "$(/usr/local/bin/brew shellenv)" + brew tap dark-alex-17/gman $(pwd) + brew install --build-bottle --verbose gman + gman -h diff --git a/Formula/gman.rb b/Formula/gman.rb new file mode 100644 index 0000000..e803d14 --- /dev/null +++ b/Formula/gman.rb @@ -0,0 +1,23 @@ +# Documentation: https://docs.brew.sh/Formula-Cookbook +# https://rubydoc.brew.sh/Formula +class GMan < Formula + desc "Universal command line credential management and injection tool" + homepage "https://github.com/Dark-Alex-17/gman" + if OS.mac? and Hardware::CPU.arm? + url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-macos-arm64.tar.gz" + sha256 "000810bd48016eac9a000e8ddeaa58fba8932cdfb6b211e63b8678e35338cce1" + elsif OS.mac? and Hardware::CPU.intel? + url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-macos.tar.gz" + sha256 "5611a2a8caaff313e20f9e51eaf39d6e48a6f3ed57f9b08cb78e32cea4a8e615" + else + url "https://github.com/Dark-Alex-17/gman/releases/download/v0.1.0/gman-linux-musl.tar.gz" + sha256 "a20e618a8b25bc4bd8b749f446c09001f8c28a00e072703a0bb6b469cdae1f43" + end + version "0.1.0" + license "BSD-3-Clause" + + def install + bin.install "gman" + ohai "You're done! Get started with \"gman --help\"" + end +end diff --git a/README.md b/README.md index 0d23ab1..15a680f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ -# homebrew-gman - Homebrew Tap for G-Man +# G-Man - Universal command line credential management and injection tool + +``` + ____ __ __ + / ___| | \/ | __ _ _ __ +| | _ _____| |\/| |/ _` | '_ \ +| |_| |_____| | | | (_| | | | | + \____| |_| |_|\__,_|_| |_| + + +``` + +`gman` is a command-line tool for managing and injecting secrets for your scripts, automations, and applications. +It provides a single, secure interface to store, retrieve, and inject secrets so you can stop hand-rolling config +files or sprinkling environment variables everywhere. + +**This repo holds the Homebrew Tap and Formula for [G-Man](https://github.com/Dark-Alex-17/gman)** + +# Install with + +``` +brew tap Dark-Alex-17/gman +brew install gman + +# If you need to be more specific, use: +brew install Dark-Alex-17/gman/gman +```