Skip to content

Github action for serverless framework

License

Notifications You must be signed in to change notification settings

caffeinetv/sls-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sls-action

License: MIT version

Github action for serverless framework

Inputs

Input Description Example Required
args arguments/options for sls command --stage dev deploy yes

Example usage

uses: caffeinetv/[email protected]
with:
  args: '--stage prod deploy'

Full example

name: deploy lambda functions

on:
  push:
    branches:
      - main

env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  AWS_DEFAULT_REGION: us-east-1

jobs:
  deploy_serverless:
    name: deploy
    runs-on: ubuntu-18.04
    steps:
      - name: clone local repository
        uses: actions/checkout@v2
      - name: npm install
        run: npm install
      - name: deploy
        uses: dragonraid/[email protected]
        with:
          args: --stage prod deploy

v1 vs v2

The behavior and configuration of sls-action does not change, so no action is required by end-users when switching to it.

NOTE: versioning schema has changed from vX.Y to vX.Y.Z to uphold to semver.

About

Github action for serverless framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.1%
  • Dockerfile 47.9%