Stop trying to publish crates that are unpublishable
This commit is contained in:
@ -38,6 +38,11 @@ for Cargo_toml in $Cargo_tomls; do
|
|||||||
|
|
||||||
crate_name=$(grep -m 1 '^name = ' "$Cargo_toml" | cut -f 3 -d ' ' | tr -d \")
|
crate_name=$(grep -m 1 '^name = ' "$Cargo_toml" | cut -f 3 -d ' ' | tr -d \")
|
||||||
|
|
||||||
|
if grep -q "^publish = false" "$Cargo_toml"; then
|
||||||
|
echo "$crate_name is is marked as unpublishable"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $(is_crate_version_uploaded "$crate_name" "$expectedCrateVersion") = True ]] ; then
|
if [[ $(is_crate_version_uploaded "$crate_name" "$expectedCrateVersion") = True ]] ; then
|
||||||
echo "${crate_name} version ${expectedCrateVersion} is already on crates.io"
|
echo "${crate_name} version ${expectedCrateVersion} is already on crates.io"
|
||||||
continue
|
continue
|
||||||
|
@ -9,6 +9,7 @@ repository = "https://github.com/solana-labs/solana"
|
|||||||
authors = ["Solana Maintainers <maintainers@solana.com>"]
|
authors = ["Solana Maintainers <maintainers@solana.com>"]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
bpf_c = []
|
bpf_c = []
|
||||||
|
Reference in New Issue
Block a user