Skip to content

update checkout version #13

update checkout version

update checkout version #13

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@v4
- 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: wlixcc/[email protected]
with:
server: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
port: ${{ secrets.SFTP_PORT }}
local_path: ${{ secrets.LOCAL_PATH }}
remote_path: ${{ secrets.REMOTE_PATH }}