From 9ad658f8cd77aac5414af1e8997c3156e496d85c Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:24:30 +0100 Subject: [PATCH] feat: add build workflow --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++ packages/interface/.env.example | 7 +++--- 2 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d730ad5 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/packages/interface/.env.example b/packages/interface/.env.example index 3c79bf4..142aaa2 100644 --- a/packages/interface/.env.example +++ b/packages/interface/.env.example @@ -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 @@ -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 @@ -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=