Skip to content

Commit 6028d88

Browse files
committed
fix: workflow
1 parent 3500848 commit 6028d88

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Release dpr Binary
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
tags:
@@ -22,8 +25,8 @@ jobs:
2225
go build -o dpr .
2326
2427
- name: Upload Release Asset
25-
uses: softprops/action-gh-release@v2
26-
with:
28+
env:: softprops/action-gh-release@v2
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2730
files: dpr
2831
env:
2932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@
44

55
dPrompt is a distributed job processing system using River and PostgreSQL, with support for LLM (Ollama) integration.
66

7-
## Setup
7+
## Installation
88

9-
1. **Build the binary:**
9+
1. **Run the installer script:**
1010
```sh
11-
make build
11+
curl -fsSL https://raw.githubusercontent.com/HexmosTech/dPrompts/main/install.sh | bash
1212
```
1313

14+
This will:
15+
- Download and install the latest `dpr` binary to `/usr/local/bin`
16+
- Copy `.dprompts.toml` to your home directory (if present in the current directory)
17+
- Check/install Ollama and the required model
18+
- Start the Ollama server if not already running
19+
1420
2. **Configuration:**
1521
- Place your configuration file as `.dprompts.toml` in your home directory (`$HOME/.dprompts.toml`).
16-
22+
23+
1724
## Usage
1825

1926
### Run a Worker
@@ -23,7 +30,7 @@ make worker
2330
```
2431
or
2532
```sh
26-
./dprompts --mode=worker
33+
dpr --mode=worker
2734
```
2835

2936
### Enqueue a Job (Client Mode)
@@ -33,7 +40,7 @@ make client
3340
```
3441
or manually:
3542
```sh
36-
./dprompts --mode=client --args='{"prompt":"Why is the sky blue?"}' --metadata='{"type":"manpage","category":"science"}'
43+
dpr --mode=client --args='{"prompt":"Why is the sky blue?"}' --metadata='{"type":"manpage","category":"science"}'
3744
```
3845

3946
## Notes

0 commit comments

Comments
 (0)