From ee7abf8da71a28be9bf7ec69f1e658d892d07dee Mon Sep 17 00:00:00 2001 From: Peter Salomonsen Date: Sun, 21 Jul 2024 04:14:15 +0000 Subject: [PATCH] deploy from json args file --- .github/workflows/deploy-prod-mainnet-devhub.yml | 3 ++- instances/devhub.near/components.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 instances/devhub.near/components.json diff --git a/.github/workflows/deploy-prod-mainnet-devhub.yml b/.github/workflows/deploy-prod-mainnet-devhub.yml index c1e9754aa..845a5731c 100644 --- a/.github/workflows/deploy-prod-mainnet-devhub.yml +++ b/.github/workflows/deploy-prod-mainnet-devhub.yml @@ -54,7 +54,8 @@ jobs: rm -Rf widget/core rm -Rf widget/devhub #bos components delete devhub.near selected components.molecule.LinkedProposalsDropdown,components.molecule.NavbarDropdown,components.molecule.SimpleMDE,components.molecule.Compose,components.molecule.DropDownWithSearch,components.molecule.MultiSelectCategoryDropdown,components.molecule.AccountInput,components.pages.about,components.pages.admin,components.proposals.Proposal,components.proposals.ViewProposalModal,components.proposals.CommentsAndLogs,components.proposals.Feed,components.proposals.Editor sign-as devhub.near network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send - bos components deploy '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send + #bos components deploy '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send + near contract call-function as-transaction social.near set file-args components.json prepaid-gas '300.0 Tgas' attached-deposit '0 NEAR' sign-as devhub.near network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send else bos components deploy '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send fi diff --git a/instances/devhub.near/components.json b/instances/devhub.near/components.json new file mode 100644 index 000000000..76b49e4d3 --- /dev/null +++ b/instances/devhub.near/components.json @@ -0,0 +1,11 @@ +{ + "data": { + "devhub.near": { + "widget": { + "app": { + "": "return \"Back soon.\"" + } + } + } + } +}