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

This Action enables you to use common Serverless Framework commands on your workflow.

License

Notifications You must be signed in to change notification settings

zeroconfigio/github-action-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Github Action for Serverless

This Action enables you to use common Serverless Framework commands on your workflow.

Usage

An example workflow to deploy a project with serverless v3:

NOTE

This action only supports Serverless Framework v3 at the moment, more specifically from v3.15.2.

There's an ongoing work to add support for the older versions as well.

name: Deploy main branch

on:
  push:
    branches:
      - main

jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [16.x]
    steps:
      - uses: actions/checkout@v3

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}

      - run: npm ci

      - name: serverless deploy
        uses: serverless/[email protected]
        with:
          args: deploy
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          SLS_VERSION: "3.16.1" # optional (default: latest)

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT license.

About

This Action enables you to use common Serverless Framework commands on your workflow.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published