Skip to content

Commit

Permalink
homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
ravener committed Mar 11, 2021
1 parent 7536985 commit 34083b7
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: img-api
tap:
owner: ravener
name: homebrew-tap
commit_author:
name: "Raven Ravener"
email: "[email protected]"
folder: Formula
homepage: "https://github.com/ravener/img-api"
description: "An image server api for generating memes for Discord Bots."
license: "MIT"
install: |
bin.install_symlink "img-api"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.2.4 (11/3/2021)
- Added homebrew installation. `brew install ravener/tap/img-api`

## v1.2.3 (15/2/2021)
- Useless release to force a release, fucking kill me.

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Simply extract the archive and run the `img-api` binary (`img-api.exe` on Window

On Linux/macOS you can type `./img-api` to run it, on Windows you may just double click the exe or type `img-api` in cmd. (Make sure you are in the correct directory)

If you are on Linux/macOS you may also install via [Homebrew](https://brew.sh) just run: `brew install ravener/tap/img-api`

The API will start in `http://localhost:3030` but the port can be changed via `-p`

If the prebuilt binaries doesn't suit you or you'd like to edit the code then continue for instructions on building, this will require [Golang 1.13+](https://golang.org) installed.
Expand Down
2 changes: 1 addition & 1 deletion routes/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var uptime int64

// XXX: Keep this version updated.
const VERSION = "1.2.3"
const VERSION = "1.2.4"

// Stats returns some information about the API Server process, like how much memory it uses.
func Stats(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 34083b7

Please sign in to comment.