Skip to content

update

update #9

Workflow file for this run

name: Build and Deploy Site
on:
push:
# branches:
# - develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to SFTP
uses: appleboy/sftp-action@master
with:
host: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
port: ${{ secrets.SFTP_PORT }}
local: "dist"
remote: "/home/demoman/github-actions/" # Path on the SFTP server where files will be uploaded