mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
build(ci/catalog): gh actions to build & delploy catalog
This commit is contained in:
parent
f47bdc3925
commit
e1ff94f8bd
19
.github/workflows/build-catalog.yml
vendored
Normal file
19
.github/workflows/build-catalog.yml
vendored
Normal 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
23
.github/workflows/deploy-catalog.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user