Skip to content

Restore brand for dashboard #855

Restore brand for dashboard

Restore brand for dashboard #855

name: Build Envision and Docs
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
yarn
- name: Lint
run: |
yarn lint
- name: Build
run: |
yarn build
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: packages/envision/dist
- uses: actions/upload-artifact@v3
with:
name: docs
path: docs
deploy:
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: docs
path: docs
- name: Display structure of downloaded files
run: ls -R
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs