Skip to content

Commit

Permalink
assets flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Sep 26, 2024
1 parent 4d825ae commit 324404a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
CANISTER_NAME="nns-dapp"
# Note: inputs.mode is set if this workflow is run manually, using `workflow_dispatch` defined above.
# If the workflow is triggered in another way, the inputs are not defined so we need to specify a default again.
scripts/nns-dapp/deploy-in-chunks --network "$DFX_NETWORK" --mode "${{ inputs.mode || 'upgrade' }}"
scripts/nns-dapp/deploy-in-chunks --assets "out/assets.tar.xz" --network "$DFX_NETWORK" --mode "${{ inputs.mode || 'upgrade' }}"
- name: Deploy sns_aggregator
if: (inputs.canisters == 'all') || (inputs.canisters == 'sns_aggregator') || ( github.event_name != 'workflow_dispatch' )
run: |
Expand Down
3 changes: 2 additions & 1 deletion scripts/nns-dapp/deploy-in-chunks
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ source "$SOURCE_DIR/clap.bash"
clap.define short=n long=network desc="The dfx network to use" variable=DFX_NETWORK default="local"
clap.define short=i long=identity desc="The dfx identity to use" variable=DFX_IDENTITY default="${DFX_IDENTITY:-$(dfx identity whoami)}"
clap.define long=mode desc="The dfx install mode" variable=DFX_MODE default="upgrade"
clap.define short=a long=assets desc="The assets.tar.xz to split" variable=ORIGINAL_ASSETS_TAR_XZ default="out/assets.tar.xz"
# Source the output file ----------------------------------------------------------
source "$(clap.build)"

mkdir -p out
CANISTER_NAME="nns-dapp"

"$SOURCE_DIR/nns-dapp/split-assets" --assets assets.tar.xz
"$SOURCE_DIR/nns-dapp/split-assets" --assets "$ORIGINAL_ASSETS_TAR_XZ"

ARGUMENT="$(cat "nns-dapp-arg-${DFX_NETWORK}.did")"

Expand Down

0 comments on commit 324404a

Please sign in to comment.