Skip to content

Commit f39a9a7

Browse files
authored
Merge pull request #12 from ludndev/fix/release
fix/release
2 parents ba3ba2b + 55a8a41 commit f39a9a7

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
CARGO_TERM_COLOR: always
1212

1313
jobs:
14-
test:
14+
release:
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -24,19 +24,5 @@ jobs:
2424
- name: Run tests
2525
run: cargo test --verbose
2626

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-
4127
- name: Publish to Crates.io
4228
run: cargo publish --token ${CRATES_TOKEN}

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Run Tests on PR Merge
33
on:
44
pull_request:
55
types:
6+
- opened
67
- closed
8+
- reopened
79

810
env:
911
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[package]
22
name = "ludndev-hello-world"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
description = "A Rust crate for greeting people."
66
keywords = ["rust", "greeting", "hello"]
7-
license = "MIT"
87
license-file = "LICENSE"
98
homepage = "https://crates.io/crates/ludndev-hello-world"
109
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"
1211

1312
[dependencies]

0 commit comments

Comments
 (0)