Skip to content

Commit

Permalink
so it only runs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondhtet committed Sep 26, 2024
1 parent 46b1d16 commit 97c3f45
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -123,4 +121,4 @@ jobs:
# - name: ZAP Scan
# uses: zaproxy/action-full-scan@v0.10.0
# with:
# target: ${{ secrets.PROD_URL }}
# target: ${{ secrets.PROD_URL }}

0 comments on commit 97c3f45

Please sign in to comment.