diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb6e9fef..4fc0a0e8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,7 @@ name: Deploy main branch development on: pull_request: + types: [closed] branches: - main @@ -20,7 +21,7 @@ jobs: uses: serverless/github-action@v3.2 with: args: serverless deploy --stage production - + env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}