Skip to content

Commit ce651f8

Browse files
author
Test
committed
fix: CI and production issues
CI Fixes: - Update workflow paths from cmd/chu to cmd/gptcode - Fix .gitignore to allow cmd/*/main.go - Add main.go to tracked files Production Fixes: - Fix CSS hover underline on nav links - Reorder menu (Features, Commands, Blog, Compare, Pricing, Live, GitHub) - Update footer link to gptcode-cloud - Add Formspree waitlist form on Live page
1 parent f3e661e commit ce651f8

File tree

7 files changed

+1808
-23
lines changed

7 files changed

+1808
-23
lines changed

.github/workflows/cd.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cache: true
3939

4040
- name: Build chu CLI
41-
run: go build -o bin/chu ./cmd/chu
41+
run: go build -o bin/gptcode ./cmd/gptcode
4242

4343
- name: Update model catalog
4444
env:
@@ -48,7 +48,7 @@ jobs:
4848
run: |
4949
# Models will be saved to ~/.gptcode/models_catalog.json
5050
mkdir -p ~/.gptcode
51-
./bin/chu model update --all || echo "Model update completed with warnings"
51+
./bin/gptcode model update --all || echo "Model update completed with warnings"
5252
5353
- name: Export models for web
5454
run: |
@@ -153,11 +153,11 @@ jobs:
153153
- name: Build binaries
154154
run: |
155155
# Build for multiple platforms
156-
GOOS=linux GOARCH=amd64 go build -o bin/chu-linux-amd64 ./cmd/chu
157-
GOOS=linux GOARCH=arm64 go build -o bin/chu-linux-arm64 ./cmd/chu
158-
GOOS=darwin GOARCH=amd64 go build -o bin/chu-darwin-amd64 ./cmd/chu
159-
GOOS=darwin GOARCH=arm64 go build -o bin/chu-darwin-arm64 ./cmd/chu
160-
GOOS=windows GOARCH=amd64 go build -o bin/chu-windows-amd64.exe ./cmd/chu
156+
GOOS=linux GOARCH=amd64 go build -o bin/gptcode-linux-amd64 ./cmd/gptcode
157+
GOOS=linux GOARCH=arm64 go build -o bin/gptcode-linux-arm64 ./cmd/gptcode
158+
GOOS=darwin GOARCH=amd64 go build -o bin/gptcode-darwin-amd64 ./cmd/gptcode
159+
GOOS=darwin GOARCH=arm64 go build -o bin/gptcode-darwin-arm64 ./cmd/gptcode
160+
GOOS=windows GOARCH=amd64 go build -o bin/gptcode-windows-amd64.exe ./cmd/gptcode
161161
162162
- name: Generate changelog
163163
id: changelog
@@ -196,11 +196,11 @@ jobs:
196196
197197
${{ steps.version.outputs.auto_generated == 'true' && '> ⚡ Automated release triggered by CI' || '' }}
198198
files: |
199-
bin/chu-linux-amd64
200-
bin/chu-linux-arm64
201-
bin/chu-darwin-amd64
202-
bin/chu-darwin-arm64
203-
bin/chu-windows-amd64.exe
199+
bin/gptcode-linux-amd64
200+
bin/gptcode-linux-arm64
201+
bin/gptcode-darwin-amd64
202+
bin/gptcode-darwin-arm64
203+
bin/gptcode-windows-amd64.exe
204204
draft: false
205205
prerelease: false
206206
env:

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
cache: true
7070

7171
- name: Build
72-
run: go build -v -o bin/chu ./cmd/chu
72+
run: go build -v -o bin/gptcode ./cmd/gptcode
7373

7474
- name: Verify binary
75-
run: ./bin/chu --version || echo "Binary created successfully"
75+
run: ./bin/gptcode --version || echo "Binary created successfully"

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Binaries
22
chu
3+
gptcode
34
*.exe
45
*.exe~
56
*.dll
67
*.so
78
*.dylib
89

910
# IMPORTANT: main.go should NEVER exist in root!
10-
# The actual main is in cmd/chu/main.go
11-
# Use `make build` or `go build -o bin/chu ./cmd/chu`
12-
main.go
11+
# The actual main is in cmd/gptcode/main.go
12+
# Use `make build` or `go build -o bin/gptcode ./cmd/gptcode`
13+
/main.go
14+
!cmd/*/main.go
1315

1416
# Test binaries
1517
*.test

0 commit comments

Comments
 (0)