deploy-static-site

Reusable workflow — deploy-static-site.

Inputs

Input

Type

Required

Default

Description

environment

string

yes

Deploy tier (prod or staging): picks the WEB_CONFIG_ variable and names the GitHub Environment.

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.

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: ...