Skip to content

Merge pull request #83 from berachain/feat/remove-tally-use-our-own #24

Merge pull request #83 from berachain/feat/remove-tally-use-our-own

Merge pull request #83 from berachain/feat/remove-tally-use-our-own #24

Workflow file for this run

name: Deploy on Fleek
on:
push:
branches: [ "v2" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
PERPS_OCT_KEY: ${{ secrets.PERPS_OCT_KEY }}
CHARTING_ACCESS_TOKEN: ${{ secrets.CHARTING_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CHARTING_ACCESS_TOKEN }}
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.18.2
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Fleek CLI
run: pnpm i -g @fleek-platform/cli
- name: Set environment variables
run: pnpm setenv:v2
- name: Build all projects
env:
NODE_OPTIONS: "--max_old_space_size=8192"
run: NEXT_PUBLIC_HOST="ipfs" pnpm run build
- name: Deploy Berps
run: cd apps/perp && fleek sites deploy
- name: Deploy Bend
run: cd apps/lend && fleek sites deploy
- name: Deploy Hub
run: cd apps/hub && fleek sites deploy
- name: Deploy Honey
run: cd apps/honey && fleek sites deploy