From 8578b8e8076df95773498c8a492fc356886fa4c1 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 13:31:13 -0400 Subject: [PATCH 01/10] add version command --- cmd/grimoire/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/grimoire/main.go b/cmd/grimoire/main.go index a7a8c96..da6dcbf 100644 --- a/cmd/grimoire/main.go +++ b/cmd/grimoire/main.go @@ -16,6 +16,7 @@ import ( var ( clipSvc *clipboard.Service promptMgr *prompt.Manager + version = "dev" // This will be set during build ) func handleError(err error, message string) { @@ -32,6 +33,14 @@ var rootCmd = &cobra.Command{ Copy prompts directly to your clipboard with simple commands.`, } +var versionCmd = &cobra.Command{ + Use: "version", + Short: "Print the version number", + Run: func(cmd *cobra.Command, args []string) { + fmt.Printf("grimoire version %s\n", version) + }, +} + var listCmd = &cobra.Command{ Use: "list", Short: "List available prompts", @@ -85,6 +94,7 @@ func init() { } clipSvc = clipboard.New() + rootCmd.AddCommand(versionCmd) rootCmd.AddCommand(listCmd) rootCmd.AddCommand(copyCmd) rootCmd.AddCommand(pasteCmd) From 0cbd9a1b5757e3b30e1e8e6e0c604309c20bfda7 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 13:52:01 -0400 Subject: [PATCH 02/10] add releaser --- .github/workflows/release.yaml | 30 ++++++++++++++++++ .goreleaser.yaml | 56 ++++++++++++++++++++++++++++++++++ cspell.json | 6 +++- 3 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..b3eaaf1 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + with: + fetch-depth: 0 + + - uses: actions/setup-go@v4 + with: + go-version: stable + + - uses: goreleaser/goreleaser-action@v4 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..375397d --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,56 @@ +before: + hooks: + - go mod tidy + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + main: ./cmd/grimoire + binary: grimoire + ldflags: + - -s -w -X main.version={{.Version}} + +brews: + - repository: + owner: gphorvath + name: homebrew-tap + token: "{{ .Env.GITHUB_TOKEN }}" + homepage: https://github.com/gphorvath/grimoire + description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts + license: MIT + test: | + system "#{bin}/grimoire --version" + install: | + bin.install "grimoire" + +nfpms: + - file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + homepage: https://github.com/gphorvath/grimoire + description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts + maintainer: Gregory Horvath + license: MIT + formats: + - deb + - rpm + dependencies: + - git + +checksum: + name_template: 'checksums.txt' + +snapshot: + name_template: "{{ incpatch .Version }}-next" + +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - '^ci:' \ No newline at end of file diff --git a/cspell.json b/cspell.json index 3200bd4..db05d39 100644 --- a/cspell.json +++ b/cspell.json @@ -11,13 +11,17 @@ "commitlint", "coverprofile", "dylib", + "goarch", "gphorvath", "Grimoire", "Horvath", + "incpatch", + "ldflags", "lycheeignore", + "nfpms", "trufflehog", "trufflesecurity" ], "ignoreWords": [], "import": [] -} \ No newline at end of file +} From 40de44f35d66f937b5bf5e0a11933557dd539854 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 13:55:05 -0400 Subject: [PATCH 03/10] update formulae location --- .goreleaser.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 375397d..8b4924f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,8 +19,11 @@ builds: brews: - repository: owner: gphorvath - name: homebrew-tap + name: grimoire token: "{{ .Env.GITHUB_TOKEN }}" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com homepage: https://github.com/gphorvath/grimoire description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts license: MIT From 504307ccb9d10de55a96a08d475fbecb3d77d87f Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 13:57:17 -0400 Subject: [PATCH 04/10] fix spelling --- cspell.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cspell.json b/cspell.json index db05d39..3acc0b1 100644 --- a/cspell.json +++ b/cspell.json @@ -12,6 +12,8 @@ "coverprofile", "dylib", "goarch", + "goreleaser", + "goreleaserbot", "gphorvath", "Grimoire", "Horvath", From 4cd3e7807cf2e443887bbb2261a5e58626b46a61 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 14:00:18 -0400 Subject: [PATCH 05/10] updates --- .goreleaser.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8b4924f..1387eb9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,13 +17,7 @@ builds: - -s -w -X main.version={{.Version}} brews: - - repository: - owner: gphorvath - name: grimoire - token: "{{ .Env.GITHUB_TOKEN }}" - commit_author: - name: goreleaserbot - email: bot@goreleaser.com + - name: grimoire homepage: https://github.com/gphorvath/grimoire description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts license: MIT @@ -31,6 +25,18 @@ brews: system "#{bin}/grimoire --version" install: | bin.install "grimoire" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + repository: + owner: gphorvath + name: grimoire + branch: main + pull_request: + enabled: true + base: + branch: main nfpms: - file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' From cba889284f81ac28b676479df7d60b1e1b8caeb4 Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 21:21:01 -0400 Subject: [PATCH 06/10] updates --- .github/workflows/release.yaml | 6 ++-- .gitignore | 2 ++ .goreleaser.yaml | 60 +++++++++++++++------------------- go.mod | 27 ++++----------- go.sum | 59 ++++++--------------------------- 5 files changed, 49 insertions(+), 105 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b3eaaf1..fcde34c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - 'v*' + - '*' permissions: contents: write @@ -17,11 +17,11 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version: stable - - uses: goreleaser/goreleaser-action@v4 + - uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: distribution: goreleaser version: latest diff --git a/.gitignore b/.gitignore index 7553571..005548f 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ go.work.sum # env file .env bin/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1387eb9..1d054ce 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod tidy @@ -7,59 +9,51 @@ builds: - CGO_ENABLED=0 goos: - linux + - windows - darwin goarch: - amd64 - arm64 main: ./cmd/grimoire binary: grimoire - ldflags: - - -s -w -X main.version={{.Version}} + +archives: + - format: binary + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + +changelog: + use: github-native + +release: + github: + owner: gphorvath + name: grimoire + prerelease: auto + mode: append brews: - name: grimoire - homepage: https://github.com/gphorvath/grimoire + homepage: https://grimoire.cc description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts license: MIT test: | system "#{bin}/grimoire --version" install: | bin.install "grimoire" - commit_author: - name: goreleaserbot - email: bot@goreleaser.com commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" repository: owner: gphorvath name: grimoire branch: main + token: "{{ .Env.GITHUB_TOKEN }}" pull_request: enabled: true base: - branch: main - -nfpms: - - file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - homepage: https://github.com/gphorvath/grimoire - description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts - maintainer: Gregory Horvath - license: MIT - formats: - - deb - - rpm - dependencies: - - git - -checksum: - name_template: 'checksums.txt' - -snapshot: - name_template: "{{ incpatch .Version }}-next" - -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' - - '^ci:' \ No newline at end of file + branch: main \ No newline at end of file diff --git a/go.mod b/go.mod index 6573ff9..b8fe7ef 100644 --- a/go.mod +++ b/go.mod @@ -4,26 +4,13 @@ go 1.23.2 require ( github.com/atotto/clipboard v0.1.4 // direct - github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/magiconair/properties v1.8.7 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/pelletier/go-toml/v2 v2.2.2 // indirect - github.com/sagikazarmark/locafero v0.4.0 // indirect - github.com/sagikazarmark/slog-shim v0.1.0 // indirect - github.com/sourcegraph/conc v0.3.0 // indirect - github.com/spf13/afero v1.11.0 // indirect - github.com/spf13/cast v1.6.0 // indirect github.com/spf13/cobra v1.8.1 // direct + gopkg.in/yaml.v3 v3.0.1 +) + +require ( + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.19.0 // indirect - github.com/subosito/gotenv v1.6.0 // indirect - go.uber.org/atomic v1.9.0 // indirect - go.uber.org/multierr v1.9.0 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect + gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect ) diff --git a/go.sum b/go.sum index fc061b5..d3f1719 100644 --- a/go.sum +++ b/go.sum @@ -1,62 +1,23 @@ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= -github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= -github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= -github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= -github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= -github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= -github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= -github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= -github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= -github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= -github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= -github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= -github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= -go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From e69b3a2c2ea4e55ea8cfbc63ce5b745d43f9885c Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 21:57:14 -0400 Subject: [PATCH 07/10] update word --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fcde34c..4e9fdbd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,6 +10,7 @@ permissions: jobs: release: + name: Release runs-on: ubuntu-latest steps: - name: Checkout code From 60fe50440490e0c151c3b6205bd7c1d86e1c849d Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 22:06:52 -0400 Subject: [PATCH 08/10] change branch name --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1d054ce..0ce3198 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -51,7 +51,7 @@ brews: repository: owner: gphorvath name: grimoire - branch: main + branch: "{{ .ProjectName }}-{{ .Tag }}" token: "{{ .Env.GITHUB_TOKEN }}" pull_request: enabled: true From b28583e26e1848cb34dc8fc27316942ed43a9edb Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 22:22:24 -0400 Subject: [PATCH 09/10] move tap out to another repo --- .goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0ce3198..9dd9971 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -39,7 +39,7 @@ release: mode: append brews: - - name: grimoire + - name: "grimoire@{{ .Version }}" homepage: https://grimoire.cc description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts license: MIT @@ -50,7 +50,7 @@ brews: commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" repository: owner: gphorvath - name: grimoire + name: homebrew-tap branch: "{{ .ProjectName }}-{{ .Tag }}" token: "{{ .Env.GITHUB_TOKEN }}" pull_request: From bc4085c1a969c231ffda3c2725a9d15a7585750d Mon Sep 17 00:00:00 2001 From: Gregory Horvath Date: Sat, 2 Nov 2024 22:45:46 -0400 Subject: [PATCH 10/10] change it back to this repo --- .goreleaser.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9dd9971..8f7bd7d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -43,6 +43,7 @@ brews: homepage: https://grimoire.cc description: A prompt engineer's Grimoire to assist with getting the best results from Generative AI prompts license: MIT + directory: formula test: | system "#{bin}/grimoire --version" install: | @@ -50,7 +51,7 @@ brews: commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" repository: owner: gphorvath - name: homebrew-tap + name: grimoire branch: "{{ .ProjectName }}-{{ .Tag }}" token: "{{ .Env.GITHUB_TOKEN }}" pull_request: