From 34083b7cce60dcb426b6c16f986b76cd2ec7ea5d Mon Sep 17 00:00:00 2001 From: ravener Date: Thu, 11 Mar 2021 09:48:59 +0430 Subject: [PATCH] homebrew --- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 15 +++++++++++++++ CHANGELOG.md | 3 +++ README.md | 2 ++ routes/stats.go | 2 +- 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c97636..7a6ccc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ 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 @@ -26,4 +26,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index ffaa05a..850e451 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,3 +46,18 @@ changelog: exclude: - '^docs:' - '^test:' +brews: + - + name: img-api + tap: + owner: ravener + name: homebrew-tap + commit_author: + name: "Raven Ravener" + email: "ravener.anime@gmail.com" + 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" diff --git a/CHANGELOG.md b/CHANGELOG.md index a05f025..2b68e64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index b7ea6e0..593cdff 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/routes/stats.go b/routes/stats.go index d358edd..24141c3 100644 --- a/routes/stats.go +++ b/routes/stats.go @@ -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) {