Skip to content

⚡️:octocat: A Github Action for deploying with the Serverless Framework

License

Notifications You must be signed in to change notification settings

mirrorhanyu/serverless-github-action-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Github Action for Serverless with Python project

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
    needs: test
    steps:
      - uses: actions/checkout@master
      - name: npm install
        uses: actions/npm@master
        with:
          args: install
      - name: serverless deploy
        uses: mirrorhanyu/serverless-github-action-python@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.

About

⚡️:octocat: A Github Action for deploying with the Serverless Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published