File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 28
28
version : latest
29
29
args : release --clean
30
30
env :
31
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ GITHUB_TOKEN : ${{ secrets.GORELEASER_TOKEN }}
32
32
- name : Upload assets
33
33
uses : actions/upload-artifact@v3
34
34
with :
Original file line number Diff line number Diff line change @@ -42,3 +42,42 @@ changelog:
42
42
exclude :
43
43
- " ^docs:"
44
44
- " ^test:"
45
+
46
+ brews :
47
+ - name : gitfs
48
+ url_template : " https://github.com/dsxack/gitfs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
49
+ commit_author :
50
+ name : " Smotrov Dmitriy"
51
+
52
+ commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
53
+ folder : Formula
54
+ homepage : " https://github.com/dsxack/gitfs"
55
+ description : " FUSE filesystem for browsing contents of git repositories revisions"
56
+ license : " MIT"
57
+ test : |
58
+ system "#{bin}/gitfs", "version"
59
+ install : |
60
+ bin.install "{{ .ProjectName }}"
61
+ repository :
62
+ owner : " dsxack"
63
+ name : " homebrew-tap"
64
+ branch : " main"
65
+ custom_block : |
66
+ class MacFuseRequirement < Requirement
67
+ fatal true
68
+
69
+ satisfy(build_env: false) do
70
+ File.exist?("/usr/local/include/fuse/fuse.h") &&
71
+ !File.symlink?("/usr/local/include/fuse")
72
+ end
73
+
74
+ def message
75
+ <<~EOS
76
+ macFUSE is required; install it via:
77
+ brew install --cask macfuse
78
+ EOS
79
+ end
80
+ end
81
+
82
+ depends_on "libfuse" if OS.linux?
83
+ depends_on MacFuseRequirement if OS.mac?
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ FUSE filesystem for browsing contents of git repositories revisions.
15
15
16
16
### Install
17
17
18
+ with Homebrew
19
+ ``` sh
20
+ brew install dsxack/tap/gitfs
21
+ ```
22
+
23
+ or with Go
18
24
``` sh
19
25
go install github.com/dsxack/gitfs/cmd/gitfs@latest
20
26
```
You can’t perform that action at this time.
0 commit comments