Skip to content

Commit ee18c8a

Browse files
committed
add github action
1 parent 231e313 commit ee18c8a

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- ignore
8+
# - master
9+
tags: [ 'v*' ]
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
release-crates-io:
17+
name: Release crates.io
18+
runs-on: ubuntu-latest
19+
if: "startsWith(github.ref, 'refs/tags/')"
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: dtolnay/rust-toolchain@stable
23+
- name: cargo login
24+
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
25+
- name: cargo publish
26+
run: |
27+
cargo publish
28+

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
name = "xxljob-sdk-rs"
33
version = "0.1.0"
44
edition = "2021"
5+
authors = ["heqingpan <[email protected]>"]
6+
license = "MIT/Apache-2.0"
7+
description = "rust实现的xxl-job sdk(客户端执行器)"
8+
repository = "https://github.com/heqingpan/xxljob-sdk-rs"
9+
readme = "README.md"
10+
keywords = ["xxljob", "xxl-job"]
511

612
[dependencies]
713
serde = { version = "1", features = ["derive", "rc"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# xxljob-sdk-rs
22

3-
xxl-job rust语言的sdk
3+
rust实现的xxl-job sdk(客户端执行器)
44

55

0 commit comments

Comments
 (0)