Skip to content
name: Deploy Widgets to Mainnet
on:
push:
branches: [main]
jobs:
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (mainnet)
env:
NEAR_DEPLOY_ID: ${{ vars.NEAR_ACCOUNT_ID }}
NEAR_ACCOUNT_ID: ${{ vars.NEAR_ACCOUNT_ID }}
NEAR_ACCOUNT_PUBLIC_KEY: ${{ vars.NEAR_ACCOUNT_PUBLIC_KEY }}
NEAR_ACCOUNT_PRIVATE_KEY: ${{ secrets.NEAR_ACCOUNT_PRIVATE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install bos-workspace
run: |
npm install bos-workspace
- name: Build
run: |
npm run build
- name: Install bos CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.2/bos-cli-installer.sh | sh
- name: Deploy widgets
working-directory: ./build/create
run: |
which bos
echo $PATH
bos components deploy "$NEAR_DEPLOY_ID" sign-as "$NEAR_ACCOUNT_ID" network-config mainnet sign-with-plaintext-private-key --signer-public-key "$NEAR_ACCOUNT_PUBLIC_KEY" --signer-private-key "$NEAR_ACCOUNT_PRIVATE_KEY" send