Skip to content

Commit

Permalink
Merge pull request #621 from gptscript-ai/revert-617-remove-tap
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak authored Jul 11, 2024
2 parents 1f9e86d + d3cf668 commit 48d0dca
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
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

0 comments on commit 48d0dca

Please sign in to comment.