Skip to content

Commit

Permalink
First pass at adding goreleaser and Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirks committed Mar 7, 2023
1 parent c75f8a2 commit 278bed8
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: ">=1.20.1"
cache: true
- uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
get-jwt
get-jwt
dist/
24 changes: 24 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64

archives:
- format: tar.gz
files:
- none*

changelog:
sort: asc

brews:
- tap:
owner: dbirks
name: get-jwt
description: A helper utility to make it easier to get a JWT
homepage: https://github.com/dbirks/get-jwt
license: Apache2
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ If this is the first time that get-jwt is being run against an App Registration

### Homebrew

If you have Homebrew installed for MacOS or Linux, you can install from the tap with:

```
brew tap dbirks/get-jwt https://github.com/dbirks/get-jwt
brew install get-jwt
```

### Binary

Pre-built binaries are available for MacOS, Windows, and Linux in the [Github Releases](https://github.com/dbirks/get-jwt/releases).
Pre-built binaries are available for Windows, MacOS, and Linux in the [Github Releases](https://github.com/dbirks/get-jwt/releases).

### Go

Expand Down

0 comments on commit 278bed8

Please sign in to comment.