File tree Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 11
11
CARGO_TERM_COLOR : always
12
12
13
13
jobs :
14
- test :
14
+ release :
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
24
24
- name : Run tests
25
25
run : cargo test --verbose
26
26
27
- release :
28
- runs-on : ubuntu-latest
29
- needs : test
30
-
31
- steps :
32
- - name : Checkout code
33
- uses : actions/checkout@v3
34
-
35
- - name : Set up Rust
36
- uses : actions-rs/toolchain@v1
37
- with :
38
- toolchain : stable
39
- override : true
40
-
41
27
- name : Publish to Crates.io
42
28
run : cargo publish --token ${CRATES_TOKEN}
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ name: Run Tests on PR Merge
3
3
on :
4
4
pull_request :
5
5
types :
6
+ - opened
6
7
- closed
8
+ - reopened
7
9
8
10
env :
9
11
CRATES_TOKEN : ${{ secrets.CRATES_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ludndev-hello-world"
3
- version = " 0.1.0 "
3
+ version = " 0.1.1 "
4
4
edition = " 2021"
5
5
description = " A Rust crate for greeting people."
6
6
keywords = [" rust" , " greeting" , " hello" ]
7
- license = " MIT"
8
7
license-file = " LICENSE"
9
8
homepage = " https://crates.io/crates/ludndev-hello-world"
10
9
repository = " https://github.com/ludndev/rustlang-hello-world-lib"
11
- documentation = " https://docs.rs/ludndev-hello-world/0.1.0/ludndev_hello_world/ "
10
+ documentation = " https://docs.rs/ludndev-hello-world"
12
11
13
12
[dependencies ]
You can’t perform that action at this time.
0 commit comments