Skip to content

Commit

Permalink
chore(GA): revert GA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eahefnawy committed Sep 24, 2024
1 parent 7ab434d commit b25d041
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: Deploy main branch

on:
push:
branches:
- main
pull_request:
branches:
- main
pull_request_target:
types:
- closed

jobs:
deploy:
name: deploy
if: github.event_name != 'pull_request_target' || github.event.pull_request.merged != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,13 +35,14 @@ jobs:
- name: Serverless Deploy
uses: serverless/github-action@v4
with:
args: deploy --stage pr-${{ github.event.pull_request.number }}
args: deploy --stage ${{ github.event.pull_request.number && 'pr-${{ github.event.pull_request.number }}' || 'prod' }}
env:
SERVERLESS_LICENSE_KEY: ${{ secrets.SERVERLESS_LICENSE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
remove:
name: remove
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit b25d041

Please sign in to comment.