rizaldntr/storage-service-website-action

Automate the deployment of static websites to AWS Storage Service (S3) with customizable caching, file handling, and AWS credentials integration.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
aws-access-key-idYour AWS Access Key ID, used for authenticating the action to access the S3 bucket.yes
aws-secret-access-keyYour AWS Secret Access Key, which works together with the Access Key ID for authentication.yes
aws-session-tokenAn optional session token for AWS temporary credentials, if you're using a session-based approach (e.g., STS).no
aws-regionThe AWS region where your S3 bucket is located (e.g., us-east-1, eu-west-2).yes
bucketThe target AWS S3 bucket name where the website will be deployed.yes
folderThe local folder path that contains the static website files to be uploaded.yes
excludeOptional patterns or specific file names to exclude from the deployment (e.g., logs or test files).no
object-rulesOptional YAML configuration that defines cache-control and content-type rules for specific file patterns. Example configuration: ``` - pattern: '_next/*' cache-control: 'max-age=31536000, immutable' - pattern: 'assets/*' cache-control: 'max-age=86400' - pattern: 'images/*' cache-control: 'max-age=86400' ``` This allows you to define different cache behaviors for specific file types or directories. no
default-cache-controlThe default `Cache-Control` header to apply to all files unless otherwise specified. This controls how long the file is cached by browsers. Default is 'max-age=2592000' (30 days).nomax-age=2592000
html-cache-controlThe `Cache-Control` value specifically for HTML files, used to define how often these should be refreshed. Default is 'max-age=600' (10 minutes).nomax-age=600
image-cache-controlThe `Cache-Control` value specifically for image files (e.g., PNG, JPG), allowing you to set longer caching periods. Default is 'max-age=864000' (10 days).nomax-age=864000
pdf-cache-controlThe `Cache-Control` value for PDF files. Default is 'max-age=2592000' (30 days).nomax-age=2592000
remove-html-extensionSet to 'true' if you want to remove the '.html' extension from URLs when serving the website (e.g., `/about` instead of `/about.html`).nofalse
duplicate-html-with-no-extensionSet to 'true' to generate both `.html` files and copies without the `.html` extension, allowing both URL formats to work. Default is 'false'.nofalse

no outputs