Skip to content

sls-action

Actions
Github action for serverless framework
v2.58.0
Latest
Star (3)

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/[email protected]
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/[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.

sls-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action for serverless framework
v2.58.0
Latest

sls-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.