Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publish workflow #309

Merged
merged 5 commits into from Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 15 additions & 20 deletions .github/workflows/rust.yml
Expand Up @@ -37,28 +37,23 @@ jobs:
args: --all-targets -- --deny warnings

publish-check:
name: Publish Check
name: publish check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo fetch
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
with:
command: publish
args: --dry-run --manifest-path lychee-bin/Cargo.toml
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- uses: actions-rs/install@v0.1
with:
crate: cargo-publish-all
version: latest
- run: cargo-publish-all --dry-run

publish:
if: startsWith(github.ref, 'refs/tags/')
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -211,7 +211,7 @@ OPTIONS:
-T, --threads <threads> Number of threads to utilize. Defaults to number of cores available to
the system
-t, --timeout <timeout> Website timeout from connect to response finished [default: 20]
-u, --user-agent <user-agent> User agent [default: lychee/0.7.1]
-u, --user-agent <user-agent> User agent [default: lychee/0.7.2]

ARGS:
<inputs>... The inputs (where to get links to check from). These can be: files (e.g. `README.md`), file globs
Expand Down Expand Up @@ -294,12 +294,13 @@ 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.
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
Expand Down
2 changes: 1 addition & 1 deletion examples/builder/Cargo.toml
Expand Up @@ -8,7 +8,7 @@ name = "builder"
path = "builder.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib" }
lychee-lib = { path = "../../lychee-lib", version = "0.7.2" }
tokio = { version = "1.6.0", features = ["full"] }
regex = "1.4.6"
http = "0.2.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/client_pool/Cargo.toml
Expand Up @@ -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.2" }
tokio = { version = "1.6.0", features = ["full"] }
2 changes: 1 addition & 1 deletion examples/collect_links/Cargo.toml
Expand Up @@ -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.2" }
tokio = { version = "1.6.0", features = ["full"] }
regex = "1.4.6"
http = "0.2.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Expand Up @@ -8,5 +8,5 @@ name = "simple"
path = "simple.rs"

[dependencies]
lychee-lib = { path = "../../lychee-lib" }
lychee-lib = { path = "../../lychee-lib", version = "0.7.2" }
tokio = { version = "1.6.0", features = ["full"] }
4 changes: 2 additions & 2 deletions lychee-bin/Cargo.toml
Expand Up @@ -14,10 +14,10 @@ keywords = [
]
license = "Apache-2.0/MIT"
repository = "https://github.com/lycheeverse/lychee"
version = "0.7.1"
version = "0.7.2"

[dependencies]
lychee-lib = { path = "../lychee-lib", version = "0.7.1" }
lychee-lib = { path = "../lychee-lib", version = "0.7.2" }
anyhow = "1.0.40"
console = "0.14.1"
headers = "0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions lychee-lib/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ keywords = [
]
license = "Apache-2.0/MIT"
repository = "https://github.com/lycheeverse/lychee"
version = "0.7.1"
version = "0.7.2"

[dependencies]
check-if-email-exists = "0.8.21"
Expand All @@ -38,7 +38,7 @@ ring = "0.16.20"
serde = { version = "1.0.125", features = ["derive"] }
shellexpand = "2.1.0"
tokio = { version = "1.6.0", features = ["full"] }
typed-builder = "0.9.0"
typed-builder = "0.9.1"
url = { version = "2.2.2", features = ["serde"] }

[dev-dependencies]
Expand Down