From 6c065057723c112ddf5a90cd9ed9acdee698d62c Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Wed, 18 Sep 2024 09:24:16 -0400 Subject: [PATCH] Fix AWS env var for deploy --- .github/workflows/dev-depoly.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-depoly.yml b/.github/workflows/dev-depoly.yml index 88b8f8f2..b899b974 100644 --- a/.github/workflows/dev-depoly.yml +++ b/.github/workflows/dev-depoly.yml @@ -45,10 +45,10 @@ jobs: - name: Run Deploy env: - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_FSX_VOLUME: ${{ secrets.AWS_FSX_VOLUME }} - DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }} + DATABASE_URL: ${{ github.head_ref == 'develop' && secrets.DATABASE_URL_DEV || secrets.DATABASE_URL}} EMAIL_USER: ${{ secrets.EMAIL_USER }} EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} run: ./deploy.sh