Add manual approving for building code in Amplify

This commit is contained in:
Gregory Campbell
2026-06-11 10:17:52 -04:00
parent c7a4296722
commit 1fc9ff4064
+4 -4
View File
@@ -9,7 +9,7 @@ on:
- master - master
jobs: jobs:
# Testing # Testing (Runs automatically on push/PR)
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -29,13 +29,13 @@ jobs:
run: npm run lint --if-present run: npm run lint --if-present
- name: Run Tests - name: Run Tests
run: npm test -- --watchAll=false # Ensures CI doesn't hang on watch mode run: npm test -- --watchAll=false
# Deployment (Only runs if 'test' passes) # Deployment (Waits for manual approval after 'test' passes)
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
if: github.event_name == 'push' environment: production
steps: steps:
- name: Trigger webhook using curl - name: Trigger webhook using curl