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

reorganized publish script more #857

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ START_DIR=$(pwd)
# We start with publish packages, aside from dao-testing which must be published last.

# Packages

cd packages/cw-denom
cargo publish
cd "$START_DIR"
Expand All @@ -49,8 +50,6 @@ cd packages/cw-paginate-storage
cargo publish
cd "$START_DIR"

sleep 120

cd packages/cw721-controllers
cargo publish
cd "$START_DIR"
Expand All @@ -59,6 +58,8 @@ cd packages/dao-cw721-extensions
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd packages/dao-interface
cargo publish
cd "$START_DIR"
Expand All @@ -67,7 +68,9 @@ cd packages/dao-dao-macros
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120
cd packages/dao-pre-propose-base
cargo publish
cd "$START_DIR"

cd packages/dao-voting
cargo publish
Expand All @@ -77,21 +80,18 @@ cd packages/dao-hooks
cargo publish
cd "$START_DIR"

sleep 120

cd packages/cw-tokenfactory-types
cargo publish
cd "$START_DIR"

cd packages/dao-pre-propose-base
cargo publish
cd "$START_DIR"

# Test contracts

cd contracts/test/dao-proposal-sudo
cargo publish
cd "$START_DIR"

sleep 120

cd contracts/test/dao-voting-cw20-balance
cargo publish
cd "$START_DIR"
Expand All @@ -100,9 +100,8 @@ cd contracts/test/dao-proposal-hook-counter
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

# Contracts

cd contracts/external/cw-tokenfactory-issuer
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand All @@ -123,6 +122,8 @@ cd contracts/external/cw-payroll-factory
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/external/cw721-roles
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand All @@ -131,8 +132,6 @@ cd contracts/pre-propose/dao-pre-propose-single
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/pre-propose/dao-pre-propose-multiple
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand Down Expand Up @@ -175,8 +174,6 @@ cd contracts/voting/dao-voting-cw4
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/voting/dao-voting-cw20-staked
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand All @@ -185,6 +182,8 @@ cd contracts/voting/dao-voting-cw721-roles
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/voting/dao-voting-cw721-staked
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand All @@ -201,8 +200,6 @@ cd contracts/dao-dao-core
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/external/cw-admin-factory
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand All @@ -216,6 +213,8 @@ cd contracts/distribution/dao-rewards-distributor
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"

sleep 120

cd contracts/external/btsg-ft-factory
cargo hack publish --no-dev-deps --allow-dirty
cd "$START_DIR"
Expand Down
Loading