From 6e3fd1bd2c6b3fdc616b821fa84f349904a98a59 Mon Sep 17 00:00:00 2001 From: jotacemarin Date: Fri, 9 Feb 2024 09:06:40 -0500 Subject: [PATCH] add serverless globally, config credentials --- .github/workflows/cd-dev-botnorrea-v2-telegram.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cd-dev-botnorrea-v2-telegram.yml b/.github/workflows/cd-dev-botnorrea-v2-telegram.yml index 4dac442..ab5f26f 100644 --- a/.github/workflows/cd-dev-botnorrea-v2-telegram.yml +++ b/.github/workflows/cd-dev-botnorrea-v2-telegram.yml @@ -20,6 +20,9 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Install serverless framework + run: npm install -g serverless + - name: Install dependencies run: npm i @@ -40,5 +43,8 @@ jobs: json: ${{ secrets.CONFIG_FILE_DEV }} dir: "config/" + - name: Setup credentials + run: serverless config credentials --provider aws --key ${{ secrets.KEY_ID }} --secret ${{ secrets.SECRET_ACCESS_KEY }} --profile ${{ secrets.PROFILE }} + - name: Deploy run: npm run dev:deploy