Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build and Deploy

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -13,7 +16,7 @@ on:
default: "/"
type: string
environment:
description: GHA environment name
description: GitHub Actions environment name (used for scoping secrets and deployment)
required: true
type: string
secrets:
Expand All @@ -35,6 +38,7 @@ jobs:
env:
CI: true
NODE_ENV: production
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
AWS_PAGER: ""
HOSTNAME: ${{ inputs.hostname }}
BASE_URL: ${{ inputs.base_url }}
Expand All @@ -53,16 +57,14 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules/.cache
key: ${{ runner.os }}-webpack-cache
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
- name: Install awscli
uses: unfor19/install-aws-cli-action@v1
- name: Install jq
run: sudo apt-get install -y jq
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the Docusaurus site
env:
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
run: yarn build
- name: Deploy the Docusaurus site
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/delete-review.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: delete-review

permissions:
contents: read

on: delete

jobs:
Expand All @@ -9,6 +12,7 @@ jobs:
name: review/${{ github.ref_name }}
env:
CI: true
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
AWS_PAGER: ""
BASE_URL: /${{ github.ref_name }}/
AWS_DEFAULT_REGION: us-east-1
Expand All @@ -23,6 +27,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
echo "Removing files at s3://${S3_BUCKET_NAME}${BASE_URL}"
aws s3 rm --recursive s3://${S3_BUCKET_NAME}${BASE_URL}
export INVALIDATION_ID=$(
aws cloudfront create-invalidation \
Expand Down
69 changes: 37 additions & 32 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,45 @@
name: Pull Request Checks
permissions:
contents: read

permissions:
contents: read

on:
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
pull_request:
branches:
- main
merge_group:
types:
- checks_requested

env:
CI: true
NODE_ENV: production
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"

jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CI: true
NODE_ENV: production
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'yarn'
- name: Docusaurus Webpack cache
uses: actions/cache@v3
with:
path: node_modules/.cache
key: ${{ runner.os }}-webpack-cache
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the Docusaurus site
env:
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
run: yarn build
spellcheck:
runs-on: ubuntu-latest
steps:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'yarn'
- name: Docusaurus Webpack cache
uses: actions/cache@v3
with:
path: node_modules/.cache
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the Docusaurus site
run: yarn build
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
name: Check spelling
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: deploy-to-production

permissions:
contents: read

on:
push:
branches:
Expand Down