Skip to content

Commit

Permalink
feat: add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Aug 28, 2024
1 parent 8bec6e5 commit 9ad658f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Copy .env
run: |
cp .env.example .env
working-directory: packages/interface

- name: Build
run: |
pnpm run build
7 changes: 3 additions & 4 deletions packages/interface/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ NEXT_PUBLIC_PIMLICO_API_KEY=

# WalletConnect (optional to support more wallets)
# Get your projectId at https://cloud.walletconnect.com
NEXT_PUBLIC_WALLETCONNECT_ID=
NEXT_PUBLIC_WALLETCONNECT_ID=0x

# -----------------
# APP CONFIGURATION
Expand All @@ -48,8 +48,7 @@ NEXT_PUBLIC_RESULTS_DATE=2024-01-01T00:00:00.000Z
NEXT_PUBLIC_FEEDBACK_URL=https://github.com/privacy-scaling-explorations/maci-platform/issues/new?title=Feedback

# address that will approve applications and voters
# (leaving empty means anyone can do this)
NEXT_PUBLIC_ADMIN_ADDRESS=
NEXT_PUBLIC_ADMIN_ADDRESS=0x64c30E48b60E62E85c5b11786AC25Ab1adC9C936

# -----------------
# EAS CONFIGURATION
Expand Down Expand Up @@ -78,7 +77,7 @@ NEXT_PUBLIC_SEMAPHORE_SUBGRAPH=
# Do this if the schemas doesn't exist on the network you're using.
WALLET_PRIVATE_KEY=""

NEXT_PUBLIC_MACI_ADDRESS=
NEXT_PUBLIC_MACI_ADDRESS=0x64c30E48b60E62E85c5b11786AC25Ab1adC9C936

NEXT_PUBLIC_MACI_START_BLOCK=

Expand Down

0 comments on commit 9ad658f

Please sign in to comment.