diff --git a/.github/workflows/contracts-build.yml b/.github/workflows/contracts-build.yml index 41dd7b64..049e5b87 100644 --- a/.github/workflows/contracts-build.yml +++ b/.github/workflows/contracts-build.yml @@ -39,6 +39,10 @@ jobs: run: | pnpm install --frozen-lockfile --prefer-offline + - name: Copy .env.example to .env + run: | + cp packages/interface/.env.example packages/interface/.env + - name: Build run: | pnpm run build diff --git a/.github/workflows/coordinator-build.yml b/.github/workflows/coordinator-build.yml index 4c43958c..a3089e4d 100644 --- a/.github/workflows/coordinator-build.yml +++ b/.github/workflows/coordinator-build.yml @@ -40,8 +40,6 @@ env: NEXT_PUBLIC_VOTING_END_DATE: ${{ vars.NEXT_PUBLIC_VOTING_END_DATE }} NEXT_PUBLIC_RESULTS_DATE: ${{ vars.NEXT_PUBLIC_RESULTS_DATE }} NEXT_PUBLIC_POLL_MODE: ${{ vars.NEXT_PUBLIC_POLL_MODE }} - TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }} - WALLET_PRIVATE_KEY: "" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -77,6 +75,11 @@ jobs: run: | pnpm install --frozen-lockfile --prefer-offline + - name: Copy .env.example to .env + run: | + cp packages/coordinator/.env.example packages/coordinator/.env + cp packages/interface/.env.example packages/interface/.env + - name: Build run: | pnpm run build diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 768c32b1..6ac3ade2 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -5,10 +5,6 @@ on: schedule: - cron: "0 9 * * *" # run every day at 9:00 UTC - push: - branches: [main] - pull_request: - env: NEXT_PUBLIC_CHAIN_NAME: ${{ vars.NEXT_PUBLIC_CHAIN_NAME }} NEXT_PUBLIC_ADMIN_ADDRESS: ${{ vars.NEXT_PUBLIC_ADMIN_ADDRESS }} @@ -32,8 +28,6 @@ env: NEXT_PUBLIC_VOTING_END_DATE: ${{ vars.NEXT_PUBLIC_VOTING_END_DATE }} NEXT_PUBLIC_RESULTS_DATE: ${{ vars.NEXT_PUBLIC_RESULTS_DATE }} NEXT_PUBLIC_POLL_MODE: ${{ vars.NEXT_PUBLIC_POLL_MODE }} - TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }} - WALLET_PRIVATE_KEY: "" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -87,6 +81,10 @@ jobs: pnpm run install:chromium working-directory: packages/interface + - name: Copy .env.example to .env + run: cp .env.example .env + working-directory: packages/interface + - name: Build run: pnpm run build working-directory: packages/interface diff --git a/packages/coordinator/.env.example b/packages/coordinator/.env.example index 067c41dc..22628679 100644 --- a/packages/coordinator/.env.example +++ b/packages/coordinator/.env.example @@ -44,5 +44,3 @@ SUBGRAPH_DEPLOY_KEY= # Subgraph project folder SUBGRAPH_FOLDER=./node_modules/maci-subgraph - - diff --git a/packages/interface/.env.example b/packages/interface/.env.example index 0d26e348..2445d559 100644 --- a/packages/interface/.env.example +++ b/packages/interface/.env.example @@ -24,10 +24,10 @@ NEXT_PUBLIC_WALLETCONNECT_ID= # ----------------- # Event title for the round, just for display -NEXT_PUBLIC_EVENT_NAME="ETH GLOBAL" +NEXT_PUBLIC_EVENT_NAME="MACI PLATFORM" # Unique identifier for your applications and lists - your app will group attestations by this id -NEXT_PUBLIC_ROUND_ID="open-rpgf-1" +NEXT_PUBLIC_ROUND_ID="maci-platform-1" # Event title for the round, just for display NEXT_PUBLIC_ROUND_ORGANIZER="PSE" @@ -45,7 +45,7 @@ NEXT_PUBLIC_FEEDBACK_URL=https://github.com/privacy-scaling-explorations/maci-pl # address that will approve applications and voters # (leaving empty means anyone can do this) -NEXT_PUBLIC_ADMIN_ADDRESS= +NEXT_PUBLIC_ADMIN_ADDRESS="0x0000000000000000000000000000000000000000" # ----------------- # EAS CONFIGURATION @@ -74,7 +74,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="0x0000000000000000000000000000000000000000" NEXT_PUBLIC_MACI_START_BLOCK=