Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

dragonraid/sls-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 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: dragonraid/sls-action@v2.0.0
with:
  args: '--stage prod deploy'

Full example

name: deploy lambda functions

on:
  push:
    branches:
      - master

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/sls-action@v2.0.0
        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.