Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Add README to both published crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Sep 3, 2019
1 parent d4a6698 commit 2c8fa18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .ci/crates_io_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ if [ -z "$CRATES_TOKEN" ]; then
exit 1
fi

cargo publish --manifest-path "lib/Cargo.toml" --token "${CRATES_TOKEN}"
# Copy the README.md into both packages, as cargo package won't respect
# files above the Cargo.toml root
cp README.md lib
cp README.md cli

cargo publish --manifest-path "lib/Cargo.toml" --token "${CRATES_TOKEN}" --allow-dirty

# HACK: Wait for a few seconds and then force index update via fetch so the
# next step doesn't fail. Maybe check out carg-publish-all
sleep 5s
cargo fetch

cargo publish --manifest-path "cli/Cargo.toml" --token "${CRATES_TOKEN}"
cargo publish --manifest-path "cli/Cargo.toml" --token "${CRATES_TOKEN}" --allow-dirty
6 changes: 3 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "texture-synthesis-cli"
description = "A CLI for texture-synthesis"
repository = "https://github.com/EmbarkStudios/texture-synthesis"
version = "0.2.2"
version = "0.2.3"
authors = [
"Embark <opensource@embark-studios.com>",
"anastasia opara <anastasiaopara@gmail.com>",
"tomasz stachowiak <h3@h3.gd>",
]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "../README.md"
readme = "README.md"
documentation = "https://docs.rs/texture-synthesis"
homepage = "https://github.com/EmbarkStudios/texture-synthesis"
categories = ["multimedia::images"]
Expand All @@ -26,4 +26,4 @@ indicatif = "0.11.0"
piston_window = "0.85.0"
rand = "0.6.4"
structopt = "0.3.0"
texture-synthesis = { version = "0.2.2", path = "../lib" }
texture-synthesis = { version = "0.2.3", path = "../lib" }
4 changes: 2 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "texture-synthesis"
description = "Multiresolution Stochastic Texture Synthesis, a non-parametric example-based algorithm for image generation"
repository = "https://github.com/EmbarkStudios/texture-synthesis"
version = "0.2.2"
version = "0.2.3"
authors = [
"Embark <opensource@embark-studios.com>",
"anastasia opara <anastasiaopara@gmail.com>",
"tomasz stachowiak <h3@h3.gd>",
]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "../README.md"
readme = "README.md"
documentation = "https://docs.rs/texture-synthesis"
homepage = "https://github.com/EmbarkStudios/texture-synthesis"
categories = ["multimedia::images"]
Expand Down

0 comments on commit 2c8fa18

Please sign in to comment.