Skip to content

css is not guaranteed to exist (#401) #103

css is not guaranteed to exist (#401)

css is not guaranteed to exist (#401) #103

name: Deploy Components to Mainnet
on:
push:
branches: [main]
concurrency: main # do not allow parallel execution
jobs:
# We want to leverage the reusable workflow from bos cli as shown here, but
# we need to temporarily use a modified version of that in order to support
# tsx file deployment. We have copied the workflow here and modified it to
# change all tsx files to jsx files before deploying. Once the bos cli
# workflow is updated to support tsx files, we can remove this and use the
# reusable workflow directly
#
# deploy-mainnet:
# uses: bos-cli-rs/bos-cli-rs/.github/workflows/deploy-mainnet.yml@main
# with:
# deploy-account-address: bwe-demos.near
# signer-account-address: bwe-demos.near
# signer-public-key: ed25519:8WLckTAFUtT7SADeAw4BF7tUFfgeG5ZW5kFbfi1TQZQB
# secrets:
# SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }}
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (mainnet)
env:
BOS_DEPLOY_ACCOUNT_ID: bwe-demos.near
BOS_SIGNER_ACCOUNT_ID: bwe-demos.near
BOS_SIGNER_PUBLIC_KEY: ed25519:FJG379b3NocJo7Sk8TRekrNDn6C7vzvpYHm7MhAJaThh
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install bos CLI
working-directory: apps/demos # only while using forked version that is not installed
run: |
wget https://github.com/mpeterdev/bos-cli-rs/releases/download/v1/bos && chmod +x bos
- name: Deploy widgets
working-directory: apps/demos
run: |
./bos components --social-db-folder "component_alpha" deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_SIGNER_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