Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Feb 22, 2024
1 parent 92d5526 commit c554dc9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-prod-widgets.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy Prod Components to Mainnet
on:
push:
branches: [stable]
paths:
- "frontend/widgets/src/**"
branches: [stable, fix/widget-deploy]
# paths:
# - "frontend/widgets/src/**"
jobs:
deploy-mainnet:
uses: ./.github/workflows/deploy-widgets.yml
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/deploy-widgets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v${{ inputs.cli-version }}/bos-cli-v${{ inputs.cli-version }}-installer.sh | sh
# - name: Install near-cli-rs
# run: |
# curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh

- run: |
mkdir /home/runner/.config/near-cli
echo -e "credentials_home_dir = \"/home/runner/.near-credentials\"\n\n[network_connection.mainnet]\nnetwork_name = \"mainnet\"\nrpc_url = \"https://archival-rpc.mainnet.near.org/\"\nwallet_url = \"https://wallet.near.org/\"\nexplorer_transaction_url = \"https://explorer.near.org/transactions/\"\nlinkdrop_account_id = \"near\"\n\n[network_connection.testnet]\nnetwork_name = \"testnet\"\nrpc_url = \"https://archival-rpc.testnet.near.org/\"\nwallet_url = \"https://wallet.testnet.near.org/\"\nexplorer_transaction_url = \"https://explorer.testnet.near.org/transactions/\"\nlinkdrop_account_id = \"testnet\"\nfaucet_url = \"https://helper.nearprotocol.com/account\"\n\n[network_connection.mainnet-non-arch]\nnetwork_name = \"mainnet\"\nrpc_url = \"https://rpc.mainnet.near.org/\"\nwallet_url = \"https://wallet.near.org/\"\nexplorer_transaction_url = \"https://explorer.near.org/transactions/\"" > /home/runner/.config/near-cli/config.toml
- name: Deploy widgets
run: |
for DIR in $(echo $DIRECTORY_PATHS | tr "," "\n")
do
cd "$DIR"
bos components deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_DEPLOY_ACCOUNT_ID" network-config mainnet sign-with-plaintext-private-key --signer-public-key "$BOS_SIGNER_PUBLIC_KEY" --signer-private-key "$BOS_SIGNER_PRIVATE_KEY" send
bos components deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_DEPLOY_ACCOUNT_ID" network-config mainnet-non-arch sign-with-plaintext-private-key --signer-public-key "$BOS_SIGNER_PUBLIC_KEY" --signer-private-key "$BOS_SIGNER_PRIVATE_KEY" display
cd -
done

0 comments on commit c554dc9

Please sign in to comment.