Skip to content

Commit 3f199f2

Browse files
committed
Tweaks for homebrew
1 parent e9b7fea commit 3f199f2

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Fetch all tags
2424
run: git fetch --force --tags
2525

2626
- name: Set up Go
27-
uses: actions/setup-go@v4
27+
uses: actions/setup-go@v6
2828
with:
29-
go-version: 1.21
29+
go-version: 1.24
3030

3131
- name: Run GoReleaser
32-
uses: goreleaser/goreleaser-action@v5
32+
uses: goreleaser/goreleaser-action@v6
3333
with:
3434
distribution: goreleaser
3535
version: latest
3636
args: release --clean
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}

.goreleaser.yaml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,30 @@ changelog:
4343
- '^docs:'
4444
- '^test:'
4545

46-
# The lines beneath this are called `modelines`. See `:help modeline`
47-
# Feel free to remove those if you don't want/use them.
48-
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
49-
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
46+
homebrew_casks:
47+
- name: fflint
48+
binaries:
49+
- fflint
50+
manpages:
51+
- manpages/fflint.1.gz
52+
completions:
53+
bash: completions/fflint.bash
54+
zsh: completions/fflint.zsh
55+
fish: completions/fflint.fish
56+
directory: Casks
57+
skip_upload: false
58+
description: "File formt linter"
59+
homepage: "https://www.fflint.dev/"
60+
license: "MIT"
61+
repository:
62+
owner: FileFormatInfo
63+
name: homebrew-tap
64+
branch: main
65+
token: "{{ .Env.HOMEBREW_TOKEN }}"
66+
hooks:
67+
post:
68+
install: |
69+
if OS.mac?
70+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/fflint"]
71+
end
72+

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023-2024 Andrew Marcuse
3+
Copyright (c) 2023-2026 Andrew Marcuse
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bin/manpages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rm -rf "${MANPAGES_DIR}"
1717
mkdir "${MANPAGES_DIR}"
1818

1919
echo "INFO: generating manpages"
20-
go run "${REPO_HOME}/cmd/mangen" man
21-
#| gzip -c -9 >"${MANPAGES_DIR}/fflint.1.gz"
20+
go run "${REPO_HOME}/cmd/mangen" man \
21+
| gzip -c -9 >"${MANPAGES_DIR}/fflint.1.gz"
2222

2323
echo "INFO: manpages complete at $(date -u +%Y-%m-%dT%H:%M:%SZ)"

0 commit comments

Comments
 (0)