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} 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 }} diff --git a/Cargo.toml b/Cargo.toml index d5d47ad..e8c610b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,12 @@ [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"] -license = "MIT" 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]