Skip to content

Commit eff4c37

Browse files
committed
Update GitHub Actions workflow and README for Gema CLI; enhance release process and clarify API key setup
1 parent 3024342 commit eff4c37

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

.github/workflows/goreleaser.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,42 @@
1+
# .github/workflows/release.yml
12
name: goreleaser
23

34
on:
5+
pull_request:
46
push:
7+
# run only against tags
58
tags:
69
- "*"
10+
11+
permissions:
12+
contents: write
13+
# packages: write
14+
# issues: write
15+
# id-token: write
16+
717
jobs:
818
goreleaser:
919
runs-on: ubuntu-latest
1020
steps:
1121
- name: Checkout
12-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
1323
with:
1424
fetch-depth: 0
1525
- name: Set up Go
16-
uses: actions/setup-go@v2
26+
uses: actions/setup-go@v5
1727
with:
18-
go-version: 1.23
19-
- name: GoReleaser Action
20-
uses: goreleaser/[email protected]
28+
go-version: stable
29+
# More assembly might be required: Docker logins, GPG, etc.
30+
# It all depends on your needs.
31+
- name: Run GoReleaser
32+
uses: goreleaser/goreleaser-action@v6
2133
with:
2234
# either 'goreleaser' (default) or 'goreleaser-pro'
2335
distribution: goreleaser
2436
# 'latest', 'nightly', or a semver
25-
version: '~> v2'
37+
version: "~> v2"
2638
args: release --clean
2739
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
42+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

Readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ mv gema /usr/local/bin/
2222

2323
## Setup
2424

25-
Before using Gema CLI, set your Gemini API key as an environment variable:
25+
Before using Gema CLI, set your Gemini API key and default model as environment variables:
2626

2727
```bash
2828
export GENAI_API_KEY=your_api_key
29-
export GENAI_DEFAULT_MODEL="models/gemini-2.0-flash-exp"
29+
export GENAI_DEFAULT_MODEL="gemini-2.0-flash-exp"
3030
```
3131

32+
You can obtain your API key from [Google AI Studio](https://aistudio.google.com/).
33+
3234
Add these to your `.bashrc`, `.zshrc`, or equivalent for persistence.
3335

3436
## Commands

0 commit comments

Comments
 (0)