Skip to content

Commit

Permalink
Merge pull request #20 from aitormagan/develop
Browse files Browse the repository at this point in the history
Use Lambda URLs
  • Loading branch information
aitormagan authored May 15, 2022
2 parents 2662447 + 08f9ffd commit 1546715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Download Node
uses: actions/setup-node@v1
with:
node-version: "10.x"
node-version: "14.x"
- name: Install Serverless Framework
run: npm install -g serverless
- name: Install serverless dependencies
Expand All @@ -47,10 +47,10 @@ jobs:
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN_DEV }}
NOTIFICATIONS_EMAIL: ${{ secrets.NOTIFICATIONS_EMAIL }}
run: serverless deploy -v -s dev
run: serverless deploy -s dev
- name: Deploy to AWS [PRO]
if: github.ref == 'refs/heads/main'
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN_PRO }}
NOTIFICATIONS_EMAIL: ${{ secrets.NOTIFICATIONS_EMAIL }}
run: serverless deploy -v -s pro
run: serverless deploy -s pro
10 changes: 1 addition & 9 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,4 @@ functions:
message_handler:
handler: main.handle_telegram_message
timeout: 30
events:
- http:
path: /
method: ANY
cors: true
- http:
path: '{proxy+}'
method: ANY
cors: true
url: true

0 comments on commit 1546715

Please sign in to comment.