- Notifications
You must be signed in to change notification settings - Fork178
⚡
A Github Action for deploying with the Serverless Framework
License
serverless/github-action
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This Action wraps theServerless Framework to enable common Serverless commands.
If you would like to be a maintainer of this project, please reach out to one of the activeServerless organization members to express your interest.
Welcome, and thanks in advance for your help!
An example workflow to deploy a project with serverless v3:
name:Deploy master branchon:push:branches: -masterjobs:deploy:name:deployruns-on:ubuntu-lateststrategy:matrix:node-version:[18.x]steps: -uses:actions/checkout@v3 -name:Use Node.js ${{ matrix.node-version }}uses:actions/setup-node@v3with:node-version:${{ matrix.node-version }} -run:npm ci -name:serverless deployuses:serverless/github-action@v3.2with:args:deployenv:SERVERLESS_ACCESS_KEY:${{ secrets.SERVERLESS_ACCESS_KEY }}# or if using AWS credentials directly# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Change your action in this way, according tothis issue, thanks to @matthewpoer:
-name:Install Plugin and Deployuses:serverless/github-action@v3.2with:args:-c "serverless plugin install --name <plugin-name> && serverless deploy"entrypoint:/bin/sh
Change your action in this way, according tothis issue, thanks to @nikhuber:
-name:Enter dir and deployuses:serverless/github-action@v3.2with:args:-c "cd ./<your-dir> && serverless deploy"entrypoint:/bin/sh
Change the action with one of the following:
uses:serverless/github-action@v1
uses:serverless/github-action@v2
The Dockerfile and associated scripts and documentation in this project are released under the Apache-2 license.
About
⚡
A Github Action for deploying with the Serverless Framework
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors13
Uh oh!
There was an error while loading.Please reload this page.