Update NocoDB config for Cloudron - fix DailyStats table ID
This commit is contained in:
30
.gitea/workflows/deploy.yml
Normal file
30
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Deploy HiHala Dashboard
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Build frontend
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Deploy to server
|
||||
run: |
|
||||
rsync -a --delete build/ /opt/apps/hihala-dashboard/build/
|
||||
rsync -a server/ /opt/apps/hihala-dashboard/server/ \
|
||||
--exclude node_modules --exclude .env
|
||||
|
||||
- name: Install deps & restart
|
||||
run: |
|
||||
cd /opt/apps/hihala-dashboard/server && npm ci --production
|
||||
sudo systemctl restart hihala-dashboard
|
||||
Reference in New Issue
Block a user