Skip to content

Commit

Permalink
Add GoReleaser workflow and change homebrew tap repo
Browse files Browse the repository at this point in the history
  • Loading branch information
silphid committed Jul 18, 2023
1 parent d2f2499 commit 6e97627
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 7 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches: ["master"]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Determine version
id: version
uses: silphid/actions/get-version@master

- name: Setup go environment
uses: actions/setup-go@v3.3.1
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum

- name: Tag commit
uses: silphid/actions/tag-commit@v1
with:
tag: ${{ steps.version.outputs.git-tag }}

- name: Release
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7 changes: 3 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ builds:
goos:
- linux
- darwin
ldflags:
- -X "main.version=v{{ .Version }}"
archives:
- format: tar.gz
wrap_in_directory: false
replacements:
386: i386
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
Expand All @@ -25,7 +24,7 @@ changelog:
brews:
- tap:
owner: silphid
name: homebrew-yey
name: homebrew-tap
homepage: "https://github.com/silphid/yey"
description: "An interactive, human-friendly docker launcher for dev and devops"
license: "MIT"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Yey was designed to address all those challenges and more by abstracting all con
- MacOS

```bash
$ brew tap silphid/yey
$ brew tap silphid/tap
$ brew install yey
```

Expand Down
2 changes: 0 additions & 2 deletions dev/release

This file was deleted.

0 comments on commit 6e97627

Please sign in to comment.