excursions/.forgejo/workflows/deploy.yaml
2025-07-01 03:02:11 +03:00

31 lines
742 B
YAML

on:
push:
branches:
- master
jobs:
deploy:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install Node.js dependencies
run: npm install
- name: Build
run: 'npm run build-only'
- name: Deploy to Server
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
with:
username: ${{ secrets.FTP_USERNAME }}
server: ${{ secrets.FTP_HOST }}
ssh_private_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
local_path: './dist/*'
remote_path: ${{ secrets.FTP_PATH }}