File tree 4 files changed +40
-4
lines changed
4 files changed +40
-4
lines changed Original file line number Diff line number Diff line change 37
37
args : release --clean --snapshot
38
38
env :
39
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
- GH_PROJECT_TOKEN : ${{ secrets.GH_PROJECT_TOKEN }}
40
+ TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
41
41
- name : Upload to S3
42
42
uses :
jakejarvis/[email protected]
43
43
env :
Original file line number Diff line number Diff line change @@ -31,15 +31,25 @@ jobs:
31
31
# After the issue is resolved, this can be set to 1.22
32
32
go-version : " 1.22.4"
33
33
- name : Run GoReleaser
34
- uses : goreleaser/goreleaser-action@v4
34
+ uses : goreleaser/goreleaser-action@v6
35
35
with :
36
36
distribution : goreleaser
37
- version : v1.23.0
37
+ version : v2.0.1
38
38
args : release --clean
39
39
env :
40
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
- GH_PROJECT_TOKEN : ${{ secrets.GH_PROJECT_TOKEN }}
41
+ TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
42
42
GORELEASER_CURRENT_TAG : ${{ github.ref_name }}
43
+ homebrew-release :
44
+ needs : release-tag
45
+ if : " ! contains(github.ref_name, '-rc')"
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - name : Update Homebrew formula
49
+ uses : dawidd6/action-homebrew-bump-formula@v3
50
+ with :
51
+ token : ${{secrets.BREW_GH_TOKEN}}
52
+ formula : gptscript
43
53
winget-release :
44
54
needs : release-tag
45
55
if : " ! contains(github.ref_name, '-rc')"
Original file line number Diff line number Diff line change
1
+ version : 2
1
2
dist : releases
2
3
snapshot :
3
4
name_template : ' {{ trimprefix .Summary "v" }}'
@@ -50,3 +51,17 @@ release:
50
51
owner : gptscript-ai
51
52
name : gptscript
52
53
prerelease : auto
54
+
55
+ brews :
56
+ - name : gptscript
57
+ description : " GPTScript CLI"
58
+ install : |
59
+ bin.install "gptscript"
60
+ generate_completions_from_executable(bin/"gptscript", "completion")
61
+ homepage : " https://github.com/gptscript-ai/gptscript"
62
+ skip_upload : false
63
+ directory : " Formula"
64
+ repository :
65
+ owner : gptscript-ai
66
+ name : homebrew-tap
67
+ token : " {{ .Env.TAP_GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change @@ -21,10 +21,21 @@ Here are some sample use cases of GPTScript:
21
21
22
22
<Tabs >
23
23
<TabItem value="MacOS and Linux (Homebrew)">
24
+ ## Homebrew Tap
25
+ ___
24
26
```shell
25
27
brew install gptscript
26
28
gptscript github.com/gptscript-ai/llm-basics-demo
27
29
```
30
+ ## Homebrew
31
+ ___
32
+ ::: warning
33
+ The [ formula in homebrew-core] ( https://github.com/Homebrew/homebrew-core/blob/master/Formula/g/gptscript.rb ) might be slightly outdated. Use our homebrew tap to always get the latest updates.
34
+ :::
35
+ ```
36
+ brew install gptscript
37
+ gptscript github.com/gptscript-ai/llm-basics-demo
38
+ ```
28
39
</TabItem>
29
40
<TabItem value="MacOS and Linux (install.sh)">
30
41
```shell
You can’t perform that action at this time.
0 commit comments