update workflows
This commit is contained in:
parent
2417008f13
commit
38d0ed0e03
2 changed files with 16 additions and 9 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
name: Build
|
name: Build
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
|
||||||
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/
|
||||||
Loading…
Reference in a new issue