Skip to content

Commit 0618591

Browse files
committed
chore: refresh badges and metadata
1 parent de20326 commit 0618591

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
on:
3+
push:
4+
tags: ['v*.*.*']
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: dtolnay/rust-toolchain@stable
13+
- run: cargo package
14+
- name: Publish to crates.io
15+
env:
16+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
17+
run: cargo publish --no-verify
18+
- uses: softprops/action-gh-release@v2
19+
with:
20+
files: target/package/*.crate
21+
generate_release_notes: true

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uapi"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "UAPI Rust SDK - idiomatic, typed, domain-driven API client."

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# uapi-sdk-rust
22

3-
![Banner](./banner.png)
3+
![Banner](https://raw.githubusercontent.com/AxT-Team/uapi-sdk-rust/main/banner.png)
44

55
[![Rust](https://img.shields.io/badge/Rust-1.75+-DEA584?style=flat-square&logo=rust&logoColor=white)](https://www.rust-lang.org/)
66
[![Docs](https://img.shields.io/badge/Docs-uapis.cn-2EAE5D?style=flat-square)](https://uapis.cn/)
@@ -70,3 +70,4 @@ async fn main() -> Result<(), uapi::Error> {
7070
## 文档
7171

7272
访问 [UApi文档首页](https://uapis.cn/docs/introduction) 并选择任意接口,向下滚动到 **快速启动** 区块即可看到最新的 Rust 示例代码。
73+

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use tracing::{debug, instrument};
1010
use url::Url;
1111

1212
static DEFAULT_BASE: &str = "https://uapis.cn/api/v1";
13-
static DEFAULT_UA: &str = "uapi-sdk-rust/0.1.0";
13+
static DEFAULT_UA: &str = "uapi-sdk-rust/0.1.1";
1414
static DEFAULT_BASE_URL: Lazy<Url> = Lazy::new(|| Url::parse(DEFAULT_BASE).expect("valid default base"));
1515

1616
#[derive(Clone)]

0 commit comments

Comments
 (0)