Files
timelapse-calc/.gitea/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: line 30: mapping values are not allowed in this context
2025-12-24 15:47:25 +07:00

45 lines
982 B
YAML

name: Deploy to Private Server
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:20-slim
steps:
- uses: actions/checkout@v4
- name: Build Vite app
run: |
npm ci
npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-output
path: dist/
deploy:
runs-on: homesrv
needs: build
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-output
path: dist/
- name: Deploy to host
run: |
rm -rf /www/vite-app/timelapse-calc
mkdir -p /www/vite-app/timelapse-calc
cp -r dist/* /www/vite-app/timelapse-calc/
echo "Deployment completed successfully"
echo "Deployed files:"
ls -la /www/vite-app/timelapse-calc/