diff --git a/.github/workflows/deploy-prod-widgets.yml b/.github/workflows/deploy-prod-widgets.yml index 9bdbdcd54..faefcaa7f 100644 --- a/.github/workflows/deploy-prod-widgets.yml +++ b/.github/workflows/deploy-prod-widgets.yml @@ -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 diff --git a/.github/workflows/deploy-widgets.yml b/.github/workflows/deploy-widgets.yml index 2ca7f553e..52840c6fc 100644 --- a/.github/workflows/deploy-widgets.yml +++ b/.github/workflows/deploy-widgets.yml @@ -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