Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
79 changes: 79 additions & 0 deletions .github/workflows/deploy-landing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Deploy Landing Page

on:
push:
branches: [main, master]
paths:
- "landing/**"
- ".github/workflows/deploy-landing.yml"
workflow_dispatch:

env:
NODE_VERSION: "20"

jobs:
ci:
name: CI — Test & Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./landing

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: ./landing/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Build
run: npm run build
env:
PUBLIC_APP_URL: ${{ secrets.PUBLIC_APP_URL }}

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: landing-dist
path: landing/dist/

cd:
name: CD — Deploy to Netlify
needs: ci
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: landing-dist
path: landing/dist/

- name: Install Netlify CLI
run: npm install -g netlify-cli

- name: Deploy to Netlify
run: |
netlify deploy \
--dir=landing/dist \
--prod \
--auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \
--site=${{ secrets.NETLIFY_SITE_ID }}
3 changes: 3 additions & 0 deletions .netlify/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"siteId": "bbb464ce-9536-439c-959a-76e0269316a2"
}
11 changes: 11 additions & 0 deletions landing/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build]
command = "npm run build"
publish = "dist"

[build.environment]
NODE_VERSION = "20"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200