Skip to content

Commit

Permalink
Merge pull request #169 from mbret/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
mbret authored Sep 6, 2024
2 parents 0d577a0 + 3354e44 commit c722272
Show file tree
Hide file tree
Showing 370 changed files with 25,161 additions and 46,291 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/_api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ on:
required: true
SUPABASE_SERVICE_ROLE_KEY:
required: true
SERVERLESS_ACCESS_KEY:
required: true

jobs:
deploy:
Expand Down Expand Up @@ -68,4 +70,8 @@ jobs:
echo "COVERS_PLACEHOLDER_BUCKET_KEY=${{inputs.COVERS_PLACEHOLDER_BUCKET_KEY}}" >> packages/api/.env
echo "OFFLINE=false" >> packages/api/.env
- name: Deploy
run: npx lerna exec --scope @oboku/api -- sls deploy --stage ${{ inputs.STAGE }}
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
run: |
echo "Secret is: $SERVERLESS_ACCESS_KEY"
npx lerna exec --scope @oboku/api -- serverless deploy --stage ${{ inputs.STAGE }}
4 changes: 4 additions & 0 deletions .github/workflows/api-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches: [master]

env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy-aws:
Expand All @@ -24,3 +27,4 @@ jobs:
CONTACT_TO_ADDRESS: ${{ secrets.CONTACT_TO_ADDRESS }}
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
Loading

0 comments on commit c722272

Please sign in to comment.