From 97c3f4549273d839a1ef02de7a12239fcf39daa0 Mon Sep 17 00:00:00 2001 From: Raymond Htet Date: Thu, 26 Sep 2024 21:32:03 +0800 Subject: [PATCH] so it only runs on push --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d323c0a..19b67d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,6 @@ name: Build and Deploy on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] #declare environment variables env: AWS_REGION: ap-southeast-1 @@ -56,7 +54,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Build - run: npm run build + run: npm run build env: NEXT_PUBLIC_COGNITO_CLIENT_ID: ${{ secrets.COGNITO_CLIENT_ID }} NEXT_PUBLIC_QUEMISTRY_GATEWAY_URL: ${{ secrets.QUEMISTRY_GATEWAY_URL }} @@ -123,4 +121,4 @@ jobs: # - name: ZAP Scan # uses: zaproxy/action-full-scan@v0.10.0 # with: - # target: ${{ secrets.PROD_URL }} \ No newline at end of file + # target: ${{ secrets.PROD_URL }}