Skip to content

Commit

Permalink
Merge pull request #15 from NEARBuilders/feat/feed
Browse files Browse the repository at this point in the history
Adds a feed tab for various post types
  • Loading branch information
elliotBraem authored Dec 29, 2023
2 parents c454d0d + 80e585a commit 392d043
Show file tree
Hide file tree
Showing 54 changed files with 42,429 additions and 2,917 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
name: Deploy Components to Mainnet

on:
push:
branches: [main]
jobs:
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (mainnet)
env:
BOS_DEPLOY_ACCOUNT_ID: ${{ vars.BOS_DEPLOY_ACCOUNT_ID }}
BOS_SIGNER_ACCOUNT_ID: ${{ vars.BOS_SIGNER_ACCOUNT_ID }}
BOS_SIGNER_PUBLIC_KEY: ${{ vars.BOS_SIGNER_PUBLIC_KEY }}
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.BOS_SIGNER_PRIVATE_KEY }}
NETWORK_ID: mainnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install near-social CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.1/bos-cli-v0.3.1-installer.sh | sh
- name: Install bos-workspace from dev branch
run: |
npm install git+https://github.com/nearbuilders/bos-workspace.git#main
- name: Build the workspaces
run: |
npm run bosworkspace build
- name: Deploy widgets
working-directory: ./build/homepage
run: |
bos components 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
jobs:
deploy-mainnet:
uses: nearbuilders/bos-workspace/.github/workflows/deploy.yml@main
with:
deploy-env: "mainnet"
app-name: "builddao"
deploy-account-address: ${{ vars.BOS_SIGNER_ACCOUNT_ID }}
signer-account-address: ${{ vars.BOS_SIGNER_ACCOUNT_ID }}
signer-public-key: ${{ vars.BOS_SIGNER_PUBLIC_KEY }}
secrets:
SIGNER_PRIVATE_KEY: ${{ secrets.BOS_SIGNER_PRIVATE_KEY }}
44 changes: 13 additions & 31 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
name: Deploy Components to Testnet

on:
push:
branches: [feature/testnet-deploy]
jobs:
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (testnet)
env:
BOS_DEPLOY_ACCOUNT_ID: ${{ vars.TESTNET_DEPLOY_ACCOUNT_ID }}
BOS_SIGNER_ACCOUNT_ID: ${{ vars.TESTNET_SIGNER_ACCOUNT_ID }}
BOS_SIGNER_PUBLIC_KEY: ${{ vars.TESTNET_SIGNER_PUBLIC_KEY }}
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.TESTNET_SIGNER_PRIVATE_KEY }}
NETWORK_ID: testnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install near-social CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.1/bos-cli-v0.3.1-installer.sh | sh
branches: [develop]

- name: Install bos-workspace from dev branch
run: |
npm install https://github.com/NEARBuilders/bos-workspace.git#dev
- name: Build the workspaces
run: |
npm run bosworkspace build
- name: Deploy widgets
working-directory: ./build/canvas
run: |
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
jobs:
deploy-testnet:
uses: nearbuilders/bos-workspace/.github/workflows/deploy.yml@main
with:
deploy-env: "testnet"
app-name: "builddao"
deploy-account-address: ${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}
signer-account-address: ${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}
signer-public-key: ${{ vars.BOS_TESTNET_SIGNER_PUBLIC_KEY }}
secrets:
SIGNER_PRIVATE_KEY: ${{ secrets.BOS_TESTNET_SIGNER_PRIVATE_KEY }}
File renamed without changes.
Loading

0 comments on commit 392d043

Please sign in to comment.