Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Licari committed Jan 10, 2024
2 parents 46a8cac + bcc780b commit 0364fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:

- name: Configure AWS Development credentials
uses: aws-actions/configure-aws-credentials@v1
if: ( github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' )
if: startsWith(github.event.ref, 'refs/heads/dev') || github.event_name == 'refs/heads/main'
with:
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.DEV_AWS_DEFAULT_REGION }}

- name: Configure AWS Production credentials
uses: aws-actions/configure-aws-credentials@v1
if: ( github.ref == 'refs/heads/release' )
if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release'
with:
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit 0364fac

Please sign in to comment.