milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

Include file to always sync #27

Closed aawnu closed 6 months ago

aawnu commented 6 months ago

Hello,

If I change a file with my workflow, will this file be synced up? If not, how can I ensure this file is synced even if not in the git diff?

milanmk commented 6 months ago

This is for delta or full sync mode?

aawnu commented 6 months ago

I have synces site with full and afterwards I have a version file that I use to signal changes for reboot in the app, but that file is not change in git, its changed on the host (simple unix timestamp); eg

/version.json is statically stored as {"version":""} and then on jobs i overwrite it with echo '{"version":"$(...)"}' > version.json

milanmk commented 6 months ago

You can use ftp-post-sync-commands input to add any arbitrary file for upload. Refer LFTP MAN page https://lftp.yar.ru/lftp-man.html. Please note that the action uses the mirror command when in Full sync mode.

aawnu commented 6 months ago

I'll have a look. Will close this issue and make a new one if needed.