deploy-static-site

Reusable workflow — deploy-static-site.

Inputs

Input

Type

Required

Default

Description

environment

string

yes

Deployment tier to roll out (e.g. prod, staging). Must have a matching DEPLOY_CONFIG_ variable provisioned by infra.

working-directory

string

no

fe

Directory of the frontend workspace (install + build run here).

build-command

string

no

yarn build

Shell that builds the site into dist-dir.

package-manager

string

no

yarn

Package manager for install + caching (yarn or npm). npm keys the cache off package-lock.json and installs with npm ci; set build-command to an npm script (e.g. npm run build) to match.

dist-dir

string

no

dist

Built static output to upload, relative to working-directory.

Usage

jobs:
  deploy:
    uses: FSHTech/github-actions/.github/workflows/deploy-static-site.yml@v1
    with:
      environment: ...