-
Notifications
You must be signed in to change notification settings - Fork 38
44 lines (35 loc) · 1.41 KB
/
testnet-preview-lite.yml
File metadata and controls
44 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: BOS Lite Components Preview
on:
push:
branches:
- main
paths:
- 'apps/bos-lite/**'
jobs:
deploy-testnet:
runs-on: ubuntu-latest
name: Deploy lite widgets to social.near (testnet)
env:
NETWORK: testnet
BOS_DEPLOY_ACCOUNT_ID: ${{ vars.TESTNET_DEPLOY_ACCOUNT }}
BOS_SIGNER_ACCOUNT_ID: ${{ vars.TESTNET_SIGNER_ACCOUNT }}
BOS_SIGNER_PUBLIC_KEY: ${{ vars.TESTNET_SIGNER_PUBLIC_KEY }}
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.TESTNET_SIGNER_PRIVATE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install BOS Components dependencies
run: cd apps/bos-lite && yarn
- name: Build project
run: cd apps/bos-lite && yarn build:testnet
- name: Install near-social CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bos-cli-rs/bos-cli-rs/releases/download/v0.3.13/bos-cli-installer.sh | sh
- name: Deploy components
run: |
cd apps/bos-lite/dist/src
find src/widget/* -maxdepth 0 -exec mv -t ./src '{}' +
if [ -z "$(ls -A src/widget)" ]; then
rm -r src/widget
fi
bos components deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_SIGNER_ACCOUNT_ID" network-config testnet sign-with-plaintext-private-key --signer-public-key "$BOS_SIGNER_PUBLIC_KEY" --signer-private-key "$BOS_SIGNER_PRIVATE_KEY" send