Skip to content

Commit

Permalink
deploy from json args file
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Jul 21, 2024
1 parent 98c5b89 commit ee7abf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-prod-mainnet-devhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions instances/devhub.near/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"data": {
"devhub.near": {
"widget": {
"app": {
"": "return \"Back soon.\""
}
}
}
}
}

0 comments on commit ee7abf8

Please sign in to comment.