Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellavance34 authored May 12, 2024
1 parent f8d2308 commit dd1b246
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ on:
branches:
- master
jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: npm
steps:
- name: Installing sls framework packages
run: npm install -g serverless \
npm install serverless-python-requirements \
npm install serverless-wsgi \
npm install serverless-domain-manager
- name: Login in AWS
run: export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- name: Deploying prod on -AWS-
run: serverless deploy
deploy:
runs-on: ubuntu-latest
steps:
- name: Installing sls framework packages
run: npm install -g serverless \
npm install serverless-python-requirements \
npm install serverless-wsgi \
npm install serverless-domain-manager
- name: Login in AWS
run: export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- name: Deploying prod on -AWS-
run: serverless deploy
# test:
# image: python:3.8.1-alpine
# stage: test
Expand Down

0 comments on commit dd1b246

Please sign in to comment.