/github-action

:zap::octocat: A Github Action for deploying with the Serverless Framework

Primary LanguageDockerfileApache License 2.0Apache-2.0

Github Action for Serverless

This Version is modefied by Kareem to add support for python lambada functions with python3.8 This Action wraps the Serverless Framework to enable common Serverless commands.

Usage

An example workflow to deploy a project with serverless:

on:
  push:
    branches:
      - master
name: Deploy master branch
jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: npm install
      uses: actions/npm@master
      with:
        args: install
    - name: serverless deploy
      uses: serverless/github-action@master
      with:
        args: deploy
      env:
        SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
        # or if using AWS creds directly
        # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

License

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