Skip to content

maintain our own tap again #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PROJECT_TOKEN: ${{ secrets.GH_PROJECT_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
- name: Upload to S3
uses: jakejarvis/[email protected]
env:
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,25 @@ jobs:
# After the issue is resolved, this can be set to 1.22
go-version: "1.22.4"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v1.23.0
version: v2.0.1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PROJECT_TOKEN: ${{ secrets.GH_PROJECT_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
homebrew-release:
needs: release-tag
if: "! contains(github.ref_name, '-rc')"
runs-on: ubuntu-latest
steps:
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{secrets.BREW_GH_TOKEN}}
formula: gptscript
winget-release:
needs: release-tag
if: "! contains(github.ref_name, '-rc')"
Expand Down
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
dist: releases
snapshot:
name_template: '{{ trimprefix .Summary "v" }}'
Expand Down Expand Up @@ -50,3 +51,17 @@ release:
owner: gptscript-ai
name: gptscript
prerelease: auto

brews:
- name: gptscript
description: "GPTScript CLI"
install: |
bin.install "gptscript"
generate_completions_from_executable(bin/"gptscript", "completion")
homepage: "https://github.com/gptscript-ai/gptscript"
skip_upload: false
directory: "Formula"
repository:
owner: gptscript-ai
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
11 changes: 11 additions & 0 deletions docs/docs/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ Here are some sample use cases of GPTScript:

<Tabs>
<TabItem value="MacOS and Linux (Homebrew)">
## Homebrew Tap
___
```shell
brew install gptscript
gptscript github.com/gptscript-ai/llm-basics-demo
```
## Homebrew
___
:::warning
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.
:::
```
brew install gptscript
gptscript github.com/gptscript-ai/llm-basics-demo
```
</TabItem>
<TabItem value="MacOS and Linux (install.sh)">
```shell
Expand Down