update workflows
This commit is contained in:
27
.gitea/workflows/deploy.yml
Normal file
27
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,27 @@
|
||||
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/
|
Reference in New Issue
Block a user