Skip to content

Commit

Permalink
fix alpaca secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz1803 committed Aug 11, 2023
1 parent e48eeb4 commit 099f07f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ jobs:
- run: npm install -g serverless
- run: npm install --save serverless-python-requirements
- run: serverless config credentials --provider aws --key ${{ secrets.AWS_ACCESS_KEY_ID }} --secret ${{ secrets.AWS_SECRET_ACCESS_KEY }} --verbose
- run: serverless deploy --verbose --stage production --region us-west-1
- name: 'serverless deploy'
env:
ALPACA_API_KEY: ${{ secrets.ALPACA_API_KEY }}
ALPACA_API_SECRET: ${{ secrets.ALPACA_API_SECRET }}
run: serverless deploy --verbose --stage production --region us-west-1
3 changes: 3 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ functions:
run-rebalance:
handler: main.rebalance
timeout: 60
environment:
ALPACA_API_KEY: ${env:ALPACA_API_KEY}
ALPACA_API_SECRET: ${env:ALPACA_API_SECRET}

plugins:
- serverless-python-requirements
Expand Down

0 comments on commit 099f07f

Please sign in to comment.