Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
zap

GitHub Action

Serverless

v1.49.0

Serverless

zap

Serverless

Wraps the Serverless Frameork to enable common Serverless commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Serverless

uses: serverless/[email protected]

Learn more about this action in serverless/github-action

Choose a version

Github Action for Serverless

This Action wraps the Serverless Framework to enable common Serverless commands.

Usage

An example workflow to deploy a project with serverless:

workflow "Deploy with Serverless" {
  on = "push"
  resolves = ["serverless deploy"]
}

action "master branch only" {
  uses = "actions/bin/filter@b2bea07"
  args = "branch master"
}

action "npm install" {
  uses = "actions/npm@master"
  args = "install"
  needs = ["master branch only"]
}

action "serverless deploy" {
  uses = "serverless/github-action@master"
  secrets = ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"]
  needs = ["npm install"]
  args = "deploy"
}

Secrets

  • AWS_ACCESS_KEY_ID - Required. The AWS Access Key ID
  • AWS_SECRET_ACCESS_KEY - Required. The AWS Secret Access Key

License

The Dockerfile and associated scripts and documentation in this project are released under the Apache-2 license.