build(ci/catalog): gh actions to build & delploy catalog

This commit is contained in:
Elliott Marquez 2023-05-31 15:48:29 -07:00
parent f47bdc3925
commit e1ff94f8bd
2 changed files with 42 additions and 0 deletions

19
.github/workflows/build-catalog.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Build Catalog
on: [push]
jobs:
build-catalog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: google/wireit@setup-github-actions-caching/v1
- run: npm ci
- run: npm run build:catalog
env:
WIREIT_FAILURES: continue

23
.github/workflows/deploy-catalog.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Build and Deploy Catalog
on:
push:
branches: main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: google/wireit@setup-github-actions-caching/v1
- run: npm ci
- run: npm run build:catalog
- name: Deploy Catalog
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: catalog/_prod