Skip to content

Jyrko/ftp_sync_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTP Sync template

Project template with the GitHub Action script for sync of the static folder (./src/remote by default) with the remote host when pushing to the main branch.

Installation

The template requires Node.js v18+ to run. (questionable, because I just have not tested with the older versions, lol)

Place the ftp_push.yaml file into .github/workflows

mkdir -p .github/workflows && mv ftp_push.yaml .github/workflows 

Rename config_sample.js into config.js and provide the server credentials.

mv src/config_sample.js src/config.js

Install the dependencies and run the synchonization script forcibly.

npm i
node src/main.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published