Skip to content

wip

wip #5

name: Build and Deploy Insights App
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install
working-directory: frontend
- name: Build Insights App
run: yarn workspace @lingodb/insights build
working-directory: frontend
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./frontend/packages/insights/build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2