cv-site/.gitea/workflows/main-deploy.yml
Gianmarco a150e9d805
All checks were successful
Build Site Main / Build-Site (push) Successful in 2m13s
ci: fixed CI on main
2025-06-21 10:07:41 +02:00

28 lines
645 B
YAML

name: Build Site Main
on:
push:
branches:
- main
jobs:
Build-Site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm install
- run: npm run build
- name: Upload via lftp (SFTP)
uses: xarses/lftp-upload-action@v0.2.0
with:
host: ${{ secrets.SFTP_HOST }}
port: 22
username: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASSWORD }}
local_path: build/
remote_path: /home/pettinattk/www