From 5560ba86366ff5f93f6007ba3d22cad044a17671 Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Wed, 15 Oct 2025 10:54:02 -0500 Subject: [PATCH] feat: course-authoring MFE s3 deployment action --- .github/workflows/deploy-mfe-s3.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/deploy-mfe-s3.yml diff --git a/.github/workflows/deploy-mfe-s3.yml b/.github/workflows/deploy-mfe-s3.yml new file mode 100644 index 0000000000..f42bb5217a --- /dev/null +++ b/.github/workflows/deploy-mfe-s3.yml @@ -0,0 +1,38 @@ +# This workflow deploys a Micro Frontend (MFE) application to an AWS S3 bucket +# +# Purpose: +# - Deploys the compiled frontend assets to an S3 bucket for hosting +# - Uses a reusable workflow from nelc/actions-hub +# - Can target either staging or production environments +# +# Trigger: +# - Manual trigger only (workflow_dispatch) +# +# Inputs: +# - environment: Choose between 'stage' (default) or 'prod' environments +# +# Notes: +# - For production deployments, the workflow must be run from the production branch +# - Stage deployments can be run from any branch + +name: MFE S3 Bucket Deployment 🚀 + +on: + workflow_dispatch: + inputs: + environment: + description: 'Environment to deploy:' + required: true + default: 'stage' + type: choice + options: + - stage + - prod + +jobs: + deployment: + if: github.ref_name == github.event.repository.default_branch || inputs.environment == 'stage' + uses: nelc/actions-hub/.github/workflows/mfe-s3-bucket-deployment.yml@main + with: + ENVIRONMENT: ${{ inputs.environment }} + secrets: inherit