2023-07-03 21:14:39 +10:00

26 lines
596 B
YAML

name: Build
on: [push]
runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🔧 Setup node
uses: https://github.com/actions/setup-node@v3
- name: 🧱 Install node packages
run: npm ci
- name: ✅ svelte-check
run: npm run check
- name: 🔨 Build project
run: npm run build
- name: 📦 Zip project
run: gzip -r build
- name: ☁️ Upload artifact
uses: actions/upload-artifact@v2
with:
name: site
path: build.zip