Skip to content
upload-cloud

GitHub Action

Deploy static site to AWS

v3.2.0 Latest version

Deploy static site to AWS

upload-cloud

Deploy static site to AWS

Batteries-included Github action that deploys a static site to AWS Cloudfront, taking care of DNS, SSL certs and S3 buckets

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Deploy static site to AWS

uses: onramper/[email protected]

Learn more about this action in onramper/action-deploy-aws-static-site

Choose a version

Deploy static site to AWS

Batteries-included Github action that deploys a static site to AWS Cloudfront, taking care of DNS, SSL certs and S3 buckets

Usage

- name: Deploy to AWS
  uses: onramper/[email protected]
  with:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    domain: subdomain.example.com
    publish_dir: ./public

Make sure to add your domain to Route 53 as hosted zone and add an NS record if needed. An A record will be automatically added by the action.