Skip to content

Commit

Permalink
GitHub Pages build
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 19, 2024
1 parent 8769a2c commit f0e559e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build
- name: Deploy to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "@emfcamp/emf-grist-widgets",
"version": "0.0.4",
"description": "A repository of grist custom widgets that have no back-end requirements.",
"scripts": {},
"scripts": {
"build": "vite build"
},
"type": "module",
"devDependencies": {
"prettier": "^3.2.5",
Expand Down

0 comments on commit f0e559e

Please sign in to comment.