From 2032d25c702d5e84b0cfa1c4670426392e456e43 Mon Sep 17 00:00:00 2001 From: ludndev Date: Sat, 23 Sep 2023 21:53:26 +0100 Subject: [PATCH 1/5] remove license and keep only license-file --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d5d47ad..33fd538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ version = "0.1.0" edition = "2021" description = "A Rust crate for greeting people." keywords = ["rust", "greeting", "hello"] -license = "MIT" license-file = "LICENSE" homepage = "https://crates.io/crates/ludndev-hello-world" repository = "https://github.com/ludndev/rustlang-hello-world-lib" From aecc0a187478fd08730e8c06673e7a7858b28fdd Mon Sep 17 00:00:00 2001 From: ludndev Date: Sat, 23 Sep 2023 21:53:47 +0100 Subject: [PATCH 2/5] update documentation url --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 33fd538..f48ed83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,6 @@ keywords = ["rust", "greeting", "hello"] license-file = "LICENSE" homepage = "https://crates.io/crates/ludndev-hello-world" repository = "https://github.com/ludndev/rustlang-hello-world-lib" -documentation = "https://docs.rs/ludndev-hello-world/0.1.0/ludndev_hello_world/" +documentation = "https://docs.rs/ludndev-hello-world" [dependencies] From 98fc506bb90dce67f4fc6736216c5bc51cc0879b Mon Sep 17 00:00:00 2001 From: ludndev Date: Sat, 23 Sep 2023 21:54:26 +0100 Subject: [PATCH 3/5] minor upgrade to version 0.1.1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f48ed83..e8c610b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ludndev-hello-world" -version = "0.1.0" +version = "0.1.1" edition = "2021" description = "A Rust crate for greeting people." keywords = ["rust", "greeting", "hello"] From 9dd32e5859dc60e4c14c1884971f5b9c6b7a1eae Mon Sep 17 00:00:00 2001 From: ludndev Date: Sat, 23 Sep 2023 21:54:47 +0100 Subject: [PATCH 4/5] simplify release.yml --- .github/workflows/release.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b460497..b53d6be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ env: CARGO_TERM_COLOR: always jobs: - test: + release: runs-on: ubuntu-latest steps: @@ -24,19 +24,5 @@ jobs: - name: Run tests run: cargo test --verbose - release: - runs-on: ubuntu-latest - needs: test - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Publish to Crates.io run: cargo publish --token ${CRATES_TOKEN} From 55a8a4115ecc7d150f5ce20709b92b0b2b351ebb Mon Sep 17 00:00:00 2001 From: ludndev Date: Sat, 23 Sep 2023 22:00:29 +0100 Subject: [PATCH 5/5] add pull request opened and reopened triggers --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8af54c8..7e7be7c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,7 +3,9 @@ name: Run Tests on PR Merge on: pull_request: types: + - opened - closed + - reopened env: CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}