Skip to content

Commit

Permalink
refactor: add env
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Jan 23, 2024
1 parent d47ed9a commit 4534dd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/serverless-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
run: npx serverless config credentials --provider aws --key ${{ env.AWS_ACCESS_KEY_ID }} --secret ${{ env.AWS_SECRET_ACCESS_KEY }}
- name: serverless_deploy
run: npm run deploy
env:
AWS_SDK_LOAD_CONFIG: 1
- name: seed_db
if: ${{ github.event.inputs.SHOULD_SEED_DB == true }}
run: npm run seed-db
Expand All @@ -67,4 +69,6 @@ jobs:
run: |
SERVICE_URL="$(npx serverless info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint\:\ //g)"
# echo "::add-mask::$SERVICE_URL"
echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT"
echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT"
env:
AWS_SDK_LOAD_CONFIG: 1

0 comments on commit 4534dd3

Please sign in to comment.