Skip to content

Deploy both Internal and Production website to S3 and serve using CloudFront #1338

Deploy both Internal and Production website to S3 and serve using CloudFront

Deploy both Internal and Production website to S3 and serve using CloudFront #1338

Workflow file for this run

# This workflow will be triggered on a push to the 'main' branch automatically or when called manually.
# Upon running this workflow, the website will be built and deployed to the internal instance.
name: Build and Deploy Internal Website
on:
pull_request:
branches:
- main
# Runs on pushes to the 'main' branch
push:
branches: [main]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# build_and_deploy_internal_existing:
# name: Build and Deploy Internal Existing
# uses: ./.github/workflows/deploy.yml
# permissions:
# id-token: write
# contents: read
# with:
# environment: internal
# target: internal-existing
# secrets:
# AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
# HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
build_and_deploy_internal:
name: Build and Deploy Internal
uses: ./.github/workflows/deploy.yml
permissions:
id-token: write
contents: read
with:
environment: internal
target: internal
secrets:
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
build_and_deploy_production:
name: Build and Deploy Production
uses: ./.github/workflows/deploy.yml
permissions:
id-token: write
contents: read
with:
environment: production
target: production
secrets:
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_PRODUCTION }}
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}