Skip to content

Commit

Permalink
Fix publish workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Sep 3, 2021
1 parent 4b53776 commit 61f62f9
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -53,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/')
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
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.0]
-u, --user-agent <user-agent> User agent [default: lychee/0.7.1]
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,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).
Expand Down
2 changes: 1 addition & 1 deletion examples/builder/Cargo.toml
Original file line number Diff line number Diff line change
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.1" }
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
Original file line number Diff line number Diff line change
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.1" }
tokio = { version = "1.6.0", features = ["full"] }
2 changes: 1 addition & 1 deletion examples/collect_links/Cargo.toml
Original file line number Diff line number Diff line change
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.1" }
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
Original file line number Diff line number Diff line change
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.1" }
tokio = { version = "1.6.0", features = ["full"] }
4 changes: 2 additions & 2 deletions lychee-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lychee-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61f62f9

Please sign in to comment.