diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 826ca4f0a3..f265971e64 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -49,16 +49,11 @@ jobs: uses: actions-rs/cargo@v1 with: command: fetch - - name: cargo publish check lychee-lib - uses: actions-rs/cargo@v1 - with: - command: publish - args: --dry-run --manifest-path lychee-lib/Cargo.toml - - name: cargo publish check lychee - uses: actions-rs/cargo@v1 + - uses: actions-rs/install@v0.1 with: - command: publish - args: --dry-run --manifest-path lychee-bin/Cargo.toml + crate: cargo-publish-all + version: latest + - run: cargo-publish-all --dry-run publish: if: startsWith(github.ref, 'refs/tags/') diff --git a/Cargo.lock b/Cargo.lock index 31eb9cb756..9d3c2b7778 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "lychee" -version = "0.7.0" +version = "0.7.1" dependencies = [ "anyhow", "assert_cmd", @@ -1378,7 +1378,7 @@ dependencies = [ [[package]] name = "lychee-lib" -version = "0.7.0" +version = "0.7.1" dependencies = [ "check-if-email-exists", "deadpool", diff --git a/README.md b/README.md index f6a951d03e..3b50a8cdea 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ OPTIONS: -T, --threads Number of threads to utilize. Defaults to number of cores available to the system -t, --timeout Website timeout from connect to response finished [default: 20] - -u, --user-agent User agent [default: lychee/0.7.0] + -u, --user-agent User agent [default: lychee/0.7.1] ARGS: ... The inputs (where to get links to check from). These can be: files (e.g. `README.md`), file globs @@ -294,6 +294,15 @@ Try one of these links to get started: - [good first issues](https://github.com/lycheeverse/lychee/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) - [help wanted](https://github.com/lycheeverse/lychee/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) +Lychee is written in Rust. Install [rust-up](https://rustup.rs/) to get started. Begin my making sure the following commands succeed without errors. + +```bash +cargo test # runs tests +cargo clippy # lints code +cargo install cargo-publish-all +cargo-publish-all --dry-run --yes # dry run release +``` + ## Troubleshooting and workarounds We collect a list of common workarounds for various websites in our [troubleshooting guide](./TROUBLESHOOTING.md). diff --git a/examples/builder/Cargo.toml b/examples/builder/Cargo.toml index 92b6bf16d0..3763f86926 100644 --- a/examples/builder/Cargo.toml +++ b/examples/builder/Cargo.toml @@ -8,7 +8,7 @@ name = "builder" path = "builder.rs" [dependencies] -lychee-lib = { path = "../../lychee-lib" } +lychee-lib = { path = "../../lychee-lib", version = "0.7.1" } tokio = { version = "1.6.0", features = ["full"] } regex = "1.4.6" http = "0.2.4" diff --git a/examples/client_pool/Cargo.toml b/examples/client_pool/Cargo.toml index 88c91f58b5..3e6c4e332b 100644 --- a/examples/client_pool/Cargo.toml +++ b/examples/client_pool/Cargo.toml @@ -8,5 +8,5 @@ name = "client_pool" path = "client_pool.rs" [dependencies] -lychee-lib = { path = "../../lychee-lib" } +lychee-lib = { path = "../../lychee-lib", version = "0.7.1" } tokio = { version = "1.6.0", features = ["full"] } diff --git a/examples/collect_links/Cargo.toml b/examples/collect_links/Cargo.toml index 53a85e6bfb..5401aa1947 100644 --- a/examples/collect_links/Cargo.toml +++ b/examples/collect_links/Cargo.toml @@ -8,7 +8,7 @@ name = "collect_links" path = "collect_links.rs" [dependencies] -lychee-lib = { path = "../../lychee-lib" } +lychee-lib = { path = "../../lychee-lib", version = "0.7.1" } tokio = { version = "1.6.0", features = ["full"] } regex = "1.4.6" http = "0.2.4" diff --git a/examples/simple/Cargo.toml b/examples/simple/Cargo.toml index 447cd223f4..90012c5389 100644 --- a/examples/simple/Cargo.toml +++ b/examples/simple/Cargo.toml @@ -8,5 +8,5 @@ name = "simple" path = "simple.rs" [dependencies] -lychee-lib = { path = "../../lychee-lib" } +lychee-lib = { path = "../../lychee-lib", version = "0.7.1" } tokio = { version = "1.6.0", features = ["full"] } \ No newline at end of file diff --git a/lychee-bin/Cargo.toml b/lychee-bin/Cargo.toml index fb3d25ed9c..244a3b81f3 100644 --- a/lychee-bin/Cargo.toml +++ b/lychee-bin/Cargo.toml @@ -14,10 +14,10 @@ keywords = [ ] license = "Apache-2.0/MIT" repository = "https://github.com/lycheeverse/lychee" -version = "0.7.0" +version = "0.7.1" [dependencies] -lychee-lib = { path = "../lychee-lib", version = "0.7.0" } +lychee-lib = { path = "../lychee-lib", version = "0.7.1" } anyhow = "1.0.40" console = "0.14.1" headers = "0.3.4" diff --git a/lychee-lib/Cargo.toml b/lychee-lib/Cargo.toml index 5abab26dfe..bfd5f478c2 100644 --- a/lychee-lib/Cargo.toml +++ b/lychee-lib/Cargo.toml @@ -14,7 +14,7 @@ keywords = [ ] license = "Apache-2.0/MIT" repository = "https://github.com/lycheeverse/lychee" -version = "0.7.0" +version = "0.7.1" [dependencies] check-if-email-exists = "0.8.21"