Skip to content

Commit

Permalink
Homebrew support
Browse files Browse the repository at this point in the history
  • Loading branch information
jckuester committed Dec 30, 2020
1 parent a34e04e commit 7f9e529
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 14 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist --timeout 60m
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER }}
25 changes: 21 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ builds:
- windows
- linux
- freebsd
- arm64
- arm
goarch:
- amd64
- 386
- arm64
- arm
goarm:
- 6
- 7
Expand All @@ -21,4 +20,22 @@ archives:
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
format: zip

brews:
- tap:
owner: jckuester
name: homebrew-tap
homepage: "https://github.com/jckuester/awsweeper"
description: "A tool for cleaning your AWS account"
folder: Formula

checksum:
name_template: 'checksums.txt'

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: bionic
language: go

go:
- 1.14.x
- 1.15.x

env:
global:
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,25 @@ Happy erasing!

## Installation

It's recommended to install a specific version of AWSweeper available on the
[releases page](https://github.com/jckuester/awsweeper/releases).
### Binary Releases

Here is the recommended way to install AWSweeper v0.10.1:
You can download a specific version of AWSweeper on the [releases page](https://github.com/jckuester/awsweeper/releases) or
install it the following way to `./bin/`:

```bash
# install it into ./bin/
curl -sSfL https://raw.githubusercontent.com/jckuester/awsweeper/master/install.sh | sh -s v0.10.1
curl -sSfL https://raw.githubusercontent.com/jckuester/awsweeper/master/install.sh | sh -s v0.8.0
```

### Install via `brew`
### Homebrew

[Homebrew](https://brew.sh/) users can install by:
Homebrew users can install by:

```sh
$ brew install awsweeper
```bash
brew install jckuester/tap/awsweeper
```

For more information on Homebrew taps please see the [tap documentation](https://docs.brew.sh/Taps).

## Usage

awsweeper [options] <filter.yml>
Expand Down

0 comments on commit 7f9e529

Please sign in to comment.