2023-07-04 13:28:21 +10:00

28 lines
583 B
YAML

name: Deploy
on:
push:
tags:
- '*'
runs-on: ubuntu-latest:host
jobs:
deploy:
needs: 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: 🧹 Clean Deploy Area
run: rm -rf /www/svelte/build
- name: 📦 Deploy
run: mv build /www/svelte/