Skip to content

Commit

Permalink
homebrew releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
canoypa committed Mar 2, 2024
1 parent d223ac1 commit e07664c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
29 changes: 29 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 1

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip

brews:
- repository:
owner: canoypa
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TAP_TOKEN }}'
folder: Formula
homepage: 'https://github.com/canoypa/mi'
description: 'CLI tool for compose notes to Misskey'
license: MIT

0 comments on commit e07664c

Please sign in to comment.