kevinpainchaud / simple-ftp-deploy-action Goto Github PK
View Code? Open in Web Editor NEWDeploy files to an FTP server using GitHub actions
Deploy files to an FTP server using GitHub actions
Hello, I have a strange behaviour with the action, it successfully does delete old files and uploads the new one to my ftp, but it ends with wrong status code for some reason and without any explanation or error message. Any idea what might cause this?
Here is my setup and Github action's log:
- name: FTP Deploy
uses: kevinpainchaud/[email protected]
with:
ftp_host: ${{ secrets.FTP_HOST }}
ftp_username: ${{ secrets.FTP_USER }}
ftp_password: ${{ secrets.FTP_PASSWORD }}
local_source_dir: "."
dist_target_dir: ${{ secrets.FTP_REMOTE_ROOT }}
delete: "true"
exclude: "'^log/' '^www/img/upload/'"
and this is the log
.. transferring files
2020-10-03T14:30:31.8344531Z Making symbolic link `vendor/bin/tester' to `../nette/tester/src/tester'
2020-10-03T14:30:31.9321196Z ln: Operation not supported: SITE SYMLINK is not supported by the server
... transferring files
2020-10-03T14:37:06.0831542Z Transferring file `www/static-nonused/typography.html'
cd: Fatal error: Certificate verification: unable to get local issuer certificate (9E:BD:78:A5:1B:96:30:A1:FF:D4:AE:C2:42:E5:FC:DD:A0:B8:72:9D)
mirror: Fatal error: Certificate verification: unable to get local issuer certificate (9E:BD:78:A5:1B:96:30:A1:FF:D4:AE:C2:42:E5:FC:DD:A0:B8:72:9D)
settings:
- name: Simple FTP deploy
uses: kevinpainchaud/simple-ftp-deploy-action@v1
with:
# FTP host
ftp_host: ftp://****:21/****.***.pl/****/
ftp-username: ***
ftp-password: ${{ secrets.FTP_PASSWORD }}
local_source_dir: dist
dist_target_dir: "my"
# delete: "true"
My config looks like this:
uses: kevinpainchaud/[email protected]
with:
ftp_host: ***
ftp_username: ***
ftp_password: ***
local_source_dir: "wp-content/themes/val"
dist_target_dir: "autodeploytest"
only_newer: true
exclude: "'^logs/' '^README.md' '^.git' '^.github' '^node_modules/"
As you can see i have a WordPress structure and want to deploy only the theme.
When i set only_newer
, the action starts to deploy the whole repo instead:
Making directory `wp-admin'
Transferring file `wp-admin/about.php'
...
and at root level, not in the specified dist_target_dir
What i wanted is to deploy only newer files from my local source dir but maybe i'm missing something?
Thanks in advance
I don't know why is returning this error...
Run kevinpainchaud/[email protected]
with:
ftp_host: ***
ftp_username: ***
ftp_password: ***
local_source_dir: /public/
dist_target_dir: /test/
delete: false
only_newer: false
ignore_time: false
disable_ssl_certificate_verification: true
.....
mirror: Access failed: /public: No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.