Skip to content

Commit db890ec

Browse files
committed
v0.0.7 fixes in release process
- installation by wget fixed
1 parent 8d59196 commit db890ec

File tree

5 files changed

+32
-20
lines changed

5 files changed

+32
-20
lines changed

.github/workflows/release.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,9 @@ jobs:
3131
RUSTTARGET: ${{ matrix.target }}
3232
EXTRA_FILES: "README.md LICENSE"
3333
ARCHIVE_TYPES: ${{ matrix.archive }}
34-
# UPLOAD_MODE: none
35-
# - name: Upload archives artifacts
36-
# uses: actions/upload-artifact@v3
37-
# with:
38-
# name: Binary
39-
# path: |
40-
# ${{ steps.compile.outputs.BUILT_ARCHIVE }}
41-
# ${{ steps.compile.outputs.BUILT_CHECKSUM }}
4234
release-binary:
35+
permissions:
36+
contents: write
4337
runs-on: ubuntu-latest
4438
steps:
4539
- uses: actions/checkout@master
@@ -51,6 +45,8 @@ jobs:
5145
run: ls gpt-cli
5246
- name: Release
5347
uses: softprops/action-gh-release@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
5450
with:
5551
files: |
5652
gpt-cli

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gpt-cli"
3-
version = "0.0.6"
3+
version = "0.0.7"
44
edition = "2021"
55

66
authors = ["Daniel Gustaw <gustaw.daniel@gmail.com>"]

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ After `ENTER` you will see
3535
## Installation
3636

3737
```
38-
git clone https://github.com/gustawdaniel/gpt-cli && cd gpt-cli
39-
cargo build --release
40-
sudo cp ./target/release/gpt-cli /usr/local/bin/p
38+
wget -qO- https://raw.githubusercontent.com/gustawdaniel/gpt-cli/main/install.sh | bash
4139
```
4240

41+
it will save `gpt-cli` and alias `p` in `/usr/local/bin` so this is why it require sudo. You can also [compile it yourself](#compilation-from-source).
42+
4343
## Config
4444

4545
Copy your `GPT3_API_KEY` to env variable. Your `.profile`, `.bashrc`, or `.zshrc` file.
@@ -196,6 +196,18 @@ Stars was updated 14-03-2023
196196
| Engine | text-davinci-003 |
197197
| Goal | help you remember bash commands |
198198

199+
200+
201+
<a name="compilation-from-source"></a>
202+
## Complication from source
203+
204+
```
205+
git clone https://github.com/gustawdaniel/gpt-cli && cd gpt-cli
206+
cargo build --release
207+
sudo cp ./target/release/gpt-cli /usr/local/bin/p
208+
```
209+
210+
199211
## Support
200212

201213
I'm looking for challenging, remote job with rust + typescript + advanced math, so if you appreciate this project, you

install.sh

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env bash
22

3-
URL="$(curl -o- https://api.github.com/repos/gustawdaniel/gpt-cli/releases/latest | jq -r '.assets[] | select(.name=="gpt-cli_v0.0.5_x86_64-unknown-linux-musl.zip").browser_download_url')"
4-
echo "$URL";
5-
#curl "${URL}" --output /tmp/gpt-cli_v0.0.5_x86_64-unknown-linux-musl.zip
6-
cd /tmp && { curl -O "${URL}" ; cd -; }
7-
3+
URL="$(wget -qO- https://api.github.com/repos/gustawdaniel/gpt-cli/releases/latest |\
4+
jq -r '.assets[] | select(.name | startswith("gpt-cli") and endswith("tar.gz")).browser_download_url')"
85

9-
#sudo wget -q -O /usr/local/bin
10-
#sudo ln -s /usr/local/bin/gpt-cli /usr/local/bin/p
6+
echo "$URL";
7+
wget "${URL}" -O /tmp/gtp-cli.tar.gz
8+
cd /tmp && {
9+
tar -zxvf gtp-cli.tar.gz;
10+
sudo rm /usr/local/bin/gpt-cli /usr/local/bin/p
11+
sudo mv gpt-cli /usr/local/bin/gpt-cli;
12+
sudo ln -s /usr/local/bin/gpt-cli /usr/local/bin/p;
13+
cd - || exit;
14+
}

0 commit comments

Comments
 (0)