Skip to content

Commit 0d2a478

Browse files
committed
feat: add Chocolatey publisher to experimental workflow
- Created .goreleaser.choco.yaml with Windows-only builds - Enabled Chocolatey job in experimental workflow - Includes proper artifact references and metadata - Uses Mono + choco CLI for package creation on Ubuntu runner
1 parent 4a31926 commit 0d2a478

File tree

2 files changed

+80
-2
lines changed

2 files changed

+80
-2
lines changed

.github/workflows/release-experimental.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
chocolatey:
7171
runs-on: ubuntu-latest
7272
continue-on-error: true # Don't block workflow on failure
73-
if: false # Disabled until Chocolatey setup is fixed
7473
steps:
7574
- name: Checkout
7675
uses: actions/checkout@v4
@@ -113,7 +112,7 @@ jobs:
113112
with:
114113
distribution: goreleaser
115114
version: "~> v2"
116-
args: release --clean --config .goreleaser.experimental.yaml --skip=snapcraft
115+
args: release --clean --config .goreleaser.choco.yaml
117116
env:
118117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119118
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}

.goreleaser.choco.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# GoReleaser Chocolatey Configuration (Experimental)
2+
# Only builds Windows binaries and publishes to Chocolatey
3+
version: 2
4+
5+
project_name: promptext
6+
7+
# Build configuration - Windows only
8+
builds:
9+
- id: default
10+
binary: promptext
11+
main: ./cmd/promptext
12+
env:
13+
- CGO_ENABLED=0
14+
goos:
15+
- windows
16+
goarch:
17+
- amd64
18+
- arm64
19+
ldflags:
20+
- -s -w
21+
- -X main.version={{.Version}}
22+
- -X main.date={{.Date}}
23+
24+
# Archives for Chocolatey (needs zip files)
25+
archives:
26+
- id: default
27+
formats: ["zip"]
28+
name_template: >-
29+
{{ .ProjectName }}_
30+
{{- if eq .Os "windows" }}Windows
31+
{{- else }}{{ .Os }}{{ end }}_
32+
{{- if eq .Arch "amd64" }}x86_64
33+
{{- else }}{{ .Arch }}{{ end }}
34+
files:
35+
- README.md
36+
- LICENSE
37+
38+
# Disable checksums
39+
checksum:
40+
disable: true
41+
42+
# Disable changelog
43+
changelog:
44+
disable: true
45+
46+
# Disable GitHub release
47+
release:
48+
disable: true
49+
50+
# Chocolatey (EXPERIMENTAL)
51+
chocolateys:
52+
- name: promptext
53+
ids:
54+
- default # Reference the build id
55+
title: Promptext
56+
authors: George Dikeakos
57+
project_url: https://github.com/1broseidon/promptext
58+
url_template: "https://github.com/1broseidon/promptext/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
59+
license_url: https://github.com/1broseidon/promptext/blob/main/LICENSE
60+
copyright: 2024 George Dikeakos
61+
require_license_acceptance: false
62+
project_source_url: https://github.com/1broseidon/promptext
63+
docs_url: https://github.com/1broseidon/promptext#readme
64+
bug_tracker_url: https://github.com/1broseidon/promptext/issues
65+
tags: "cli go ai llm token-counter context promptext"
66+
summary: Smart code context extractor for AI assistants
67+
description: |
68+
Promptext analyzes codebases, filters relevant files, estimates token
69+
usage using tiktoken (GPT-3.5/4 compatible), and provides formatted
70+
output suitable for AI prompts.
71+
72+
Features:
73+
- Smart file filtering with .gitignore support
74+
- Relevance prioritization with multi-factor scoring
75+
- Token budget management
76+
- Multiple output formats (PTX, TOON, Markdown, XML)
77+
- Accurate token counting using tiktoken
78+
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
79+
skip_publish: false

0 commit comments

Comments
 (0)