Skip to content

Commit

Permalink
reorganized publish more (DA0-DA0#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso authored Jul 22, 2024
1 parent cf86aed commit aa0fa5f
Showing 1 changed file with 16 additions and 17 deletions.
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

0 comments on commit aa0fa5f

Please sign in to comment.