Skip to content

Commit 3e8348c

Browse files
committed
chore: add crates.io metadata and release workflow
Add authors, keywords, and categories to Cargo.toml. Add GitHub Actions workflow to publish to crates.io on tag push.
1 parent c86d737 commit 3e8348c

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
check:
13+
name: Check & Test
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@stable
18+
- run: cargo clippy -- -D warnings
19+
- run: cargo test
20+
21+
publish:
22+
name: Publish to crates.io
23+
needs: check
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
28+
- run: cargo publish
29+
env:
30+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
name = "gitocular"
33
version = "1.0.0"
44
edition = "2024"
5+
authors = ["krfl <2630397+krfl@users.noreply.github.com>"]
56
license = "Apache-2.0"
67
description = "A TUI dashboard for monitoring git repository status"
78
repository = "https://github.com/krfl/gitocular"
89
rust-version = "1.86"
10+
keywords = ["git", "tui", "dashboard", "terminal"]
11+
categories = ["command-line-utilities", "development-tools"]
912

1013
[[bin]]
1114
name = "gitocular"

0 commit comments

Comments
 (0)