Comments (6)
@sand4rt How did you create the distribution file?
from ftp-deployer.
@cgsmith I'm using another package called ftp-deploy that is causing this error: simonh1000/ftp-deploy#116. Let me know if you want to know more.
from ftp-deployer.
I'm curious how you generated the distribution file? Was this bult separately or downloaded elsewhere? Trying to test a few things locally.
from ftp-deployer.
You mean the dist folder? This is generated by running npm install
and after that run: npm run build
.
npm install
installs thencc
commandnpm run build
runsncc build index.js
- In the
index.js
file, i import a library calledftp-deploy
(which has a pagent.exe included)
Noting is downloaded from elsewhere (only from npm through the packages.json)
from ftp-deployer.
This is how you can test the deployment:
- create a test-action.js in the root of the git repository
- run
npm install && npm run build
- Paste the code below in the created test-action.js
- Change the host, user, password properties
- run
node test-action.js
const core = require('@actions/core');
const FtpDeploy = require('ftp-deploy');
core.info('Deploying...');
new FtpDeploy()
.deploy({
sftp: true,
host: 'test.rebex.net',
port: 22,
user: 'demo',
password: 'password',
remoteRoot: './',
localRoot: 'dist',
include: ['dist'],
exclude: ['node_modules/**', 'node_modules/**/.*', '.git/**']
})
.then(response => core.info('Deploy finished:', response))
.catch(error => core.error(error));
from ftp-deployer.
Does this still persist after v1.7?
from ftp-deployer.
Related Issues (19)
- Error: Cannot find module '@actions/core' HOT 1
- DeprecationWarning: Buffer() HOT 1
- Include and Exclude incorrect formatting HOT 1
- DeprecationWarning: Buffer() is deprecated due to security and usability issues HOT 1
- Not deploying due to TLS HOT 1
- Update to Node16 HOT 1
- Error: dist/ is not an existing location HOT 2
- (node:1715) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. HOT 1
- Actions not works after upgrade from 1.4 to 1.5 HOT 3
- Errors in log HOT 1
- A warning for version 1.4 HOT 2
- Remove pasive from readme (for version 1.5) HOT 2
- [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. HOT 6
- Upgrade to use Node.js 20 HOT 2
- Error not bubbling up to github workflow HOT 5
- confusing action param HOT 3
- JSONparse error when using the example with exclude HOT 2
- not able to upload .htaccess HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftp-deployer.