Skip to content

Serverless Stack (SST) deploy

Actions
This action deploys a serverless stack application to the staging environment of your choice
v.1.3
Latest
Star (12)

Tags

 (1)

SST Deploy JS action

This action deploys your serverless stack application

Inputs

access-key-id

Required AWS ACCESS_KEY_ID.

secret-access-key

Required AWS SECRET_ACCESS_KEY

region

Optional AWS Region - [ us-east-1 ]

stage

Optional Staging environment - [ production ]

pkg-manger

Optional Package mangers for your lock file. options are npm, yarn - [ yarn ]

envs

Optional Environmental variables for your sst application

Outputs

Using stage: production
  Preparing your SST app
  
  Deploying stacks
  
   ✅  production-sst-deploy-demo-MyStack (no changes)
  
  
  Stack production-sst-deploy-demo-MyStack
    Status: no changes
    Outputs:
      ApiEndpoint: https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com

Example usage

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Deploy SST APP
    steps:

      - name: Checkout
        uses: actions/checkout@v2
        with:
          path: "./"

      - name: Use Node.JS
        uses: actions/setup-node@v3
        with:
          node-version: 16

      - name: Deploy SST app
        uses: quenginedev/sst-deploy@main
        env:
            AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
            AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
            AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
            # ANY OTHER ENVS can go here
        with:
          path: '/path/to/the/root/of/your/sst/folder'
          pkg-manager: 'yarn' # required
          stage: 'prod'
          pre-deploy: 'cd ./path/to/web/app/or/something && yarn'

Serverless Stack (SST) deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action deploys a serverless stack application to the staging environment of your choice
v.1.3
Latest

Tags

 (1)

Serverless Stack (SST) deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.