Skip to content

Commit

Permalink
feat: github actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vithalreddy committed Mar 30, 2023
1 parent 2079e05 commit d909eb5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy SLS Fn on AWS

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Deploy to AWS
run: npx serverless deploy --verbose
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit d909eb5

Please sign in to comment.