From dd0c0a20a9758712b5850cb639615dd34b3307fe Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Sun, 8 Sep 2024 12:43:14 +0500 Subject: [PATCH] chore: cleanup ci workflows and use default env --- .github/workflows/checks.yml | 5 ++++ .github/workflows/coordinator-build.yml | 1 + .github/workflows/coordinator-deploy.yml | 37 ------------------------ .github/workflows/e2e.yml | 5 ++++ packages/interface/.env.example | 6 ++-- 5 files changed, 14 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/coordinator-deploy.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index abc940be..16aec421 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -44,6 +44,11 @@ jobs: run: | pnpm install + - name: Copy .env.example to .env + run: | + cp .env.example .env + working-directory: packages/interface + - name: Build run: | pnpm build diff --git a/.github/workflows/coordinator-build.yml b/.github/workflows/coordinator-build.yml index 5a868b65..94f00021 100644 --- a/.github/workflows/coordinator-build.yml +++ b/.github/workflows/coordinator-build.yml @@ -80,6 +80,7 @@ jobs: - name: Build run: | pnpm run build + working-directory: packages/coordinator - name: Run hardhat run: | diff --git a/.github/workflows/coordinator-deploy.yml b/.github/workflows/coordinator-deploy.yml deleted file mode 100644 index 58665e92..00000000 --- a/.github/workflows/coordinator-deploy.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CoordinatorDeploy -on: - push: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - deploy: - runs-on: ubuntu-22.04 - permissions: - id-token: write - contents: read - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::490752553772:role/maci-coordinator-ecs-deploy-slc - role-duration-seconds: 2700 - aws-region: eu-central-1 - - - name: Build and Push images to ECR - run: | - .github/scripts/build.sh ${{ secrets.COORDINATOR_RPC_URL }} ${{ secrets.COORDINATOR_ADDRESSES }} ${{ secrets.COORDINATOR_ALLOWED_ORIGINS }} - - - name: Create Deployment - run: | - .github/scripts/deploy.sh diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b25691ca..f8c3452e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -86,6 +86,11 @@ 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/interface/.env.example b/packages/interface/.env.example index 318f04c1..6f007147 100644 --- a/packages/interface/.env.example +++ b/packages/interface/.env.example @@ -17,14 +17,14 @@ NEXT_PUBLIC_ALCHEMY_ID= # WalletConnect (optional to support more wallets) # Get your projectId at https://cloud.walletconnect.com -NEXT_PUBLIC_WALLETCONNECT_ID= +NEXT_PUBLIC_WALLETCONNECT_ID="21fef48091f12692cad574a6f7753643" # ----------------- # APP CONFIGURATION # ----------------- # Event title for the round, just for display -NEXT_PUBLIC_EVENT_NAME="ETH GLOBAL" +NEXT_PUBLIC_EVENT_NAME="Devcon" # Unique identifier for your applications and lists - your app will group attestations by this id NEXT_PUBLIC_ROUND_ID="open-rpgf-1" @@ -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