Compare commits

..

No commits in common. "main" and "v0.1.0-alpha" have entirely different histories.

2 changed files with 0 additions and 66 deletions

View file

@ -1,60 +0,0 @@
name: Build
on:
push:
branches:
- main
tags:
- 'v*.*.*'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
cache: true
- name: Build binary
run: |
set -euo pipefail
version=$(tr -d '[:space:]' < VERSION)
echo "Building chat-bot $version"
go build \
-trimpath \
-ldflags "-s -w -X main.version=$version" \
-o bin/chat-bot \
./cmd/chat-bot
- name: Sanity check
run: ./bin/chat-bot version
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: chat-bot-${{ github.sha }}
path: bin/chat-bot
retention-days: 14
- name: Attach to release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view "${{ github.ref_name }}" >/dev/null 2>&1; then
gh release upload "${{ github.ref_name }}" bin/chat-bot --clobber
echo "Attached bin/chat-bot to ${{ github.ref_name }}"
else
echo "No release for ${{ github.ref_name }} (tag has [skip-release] or release not created yet), skipping attachment"
fi

6
go.mod
View file

@ -3,18 +3,12 @@ module github.com/VictorVargas/rony-chat-bot
go 1.26 go 1.26
require ( require (
github.com/VictorVargas/rony-llm-agent v0.0.0-1784272269-cde9ac3
github.com/go-chi/chi/v5 v5.3.1 github.com/go-chi/chi/v5 v5.3.1
github.com/spf13/cobra v1.10.2 github.com/spf13/cobra v1.10.2
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
modernc.org/sqlite v1.53.0 modernc.org/sqlite v1.53.0
) )
// TODO: remove this replace when rony-llm-agent is published and the require
// above is updated to a tagged version. The replace lets `go build` work
// outside of `go.work` (e.g. on a fresh clone without the parent workspace).
replace github.com/VictorVargas/rony-llm-agent => ../rony-llm-agent
require ( require (
github.com/dustin/go-humanize v1.0.1 // indirect github.com/dustin/go-humanize v1.0.1 // indirect
github.com/google/uuid v1.6.0 // indirect github.com/google/uuid v1.6.0 // indirect