mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-19 08:08:05 +08:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
191986574c | ||
|
d41b136666 | ||
|
1ac1bcb558 | ||
|
c14eb85faf | ||
|
2bc5e10d4d | ||
|
4f928a3efc | ||
|
aac4cbf0db |
@@ -51,9 +51,11 @@ The target directory
|
||||
|
||||
# Usage
|
||||
|
||||
!!! Please use latest version, Readme file is just an example, eg: ssh-deploy@v2.1.5
|
||||
|
||||
```
|
||||
- name: Deploy to Staging server
|
||||
uses: easingthemes/ssh-deploy@v2.0.7
|
||||
uses: easingthemes/ssh-deploy@v2.1.5
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
||||
ARGS: "-rltgoDzvO"
|
||||
@@ -86,7 +88,7 @@ jobs:
|
||||
- name: Run build task
|
||||
run: npm run build --if-present
|
||||
- name: Deploy to Server
|
||||
uses: easingthemes/ssh-deploy@v2.1.1
|
||||
uses: easingthemes/ssh-deploy@v2.1.5
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
||||
ARGS: "-rltgoDzvO --delete"
|
||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -707,7 +707,7 @@ const validateInputs = (inputs) => {
|
||||
});
|
||||
|
||||
if (validInputs.length !== inputKeys.length) {
|
||||
console.error(`⚠️ [INPUTS] Inputs not valid, aborting ...`);
|
||||
console.error('⚠️ [INPUTS] Inputs not valid, aborting ...');
|
||||
process.abort();
|
||||
}
|
||||
};
|
||||
@@ -715,7 +715,7 @@ const validateInputs = (inputs) => {
|
||||
module.exports = {
|
||||
validateRsync,
|
||||
validateInputs
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@@ -995,9 +995,9 @@
|
||||
}
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.15",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
|
||||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
|
||||
"version": "4.17.19",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
|
||||
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
|
||||
"dev": true
|
||||
},
|
||||
"mimic-fn": {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ssh-deploy",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"description": "This GitHub Action deploys specific directory from `GITHUB_WORKSPACE` to a folder on a server via rsync over ssh.",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
@@ -35,7 +35,7 @@ const validateInputs = (inputs) => {
|
||||
});
|
||||
|
||||
if (validInputs.length !== inputKeys.length) {
|
||||
console.error(`⚠️ [INPUTS] Inputs not valid, aborting ...`);
|
||||
console.error('⚠️ [INPUTS] Inputs not valid, aborting ...');
|
||||
process.abort();
|
||||
}
|
||||
};
|
||||
@@ -43,4 +43,4 @@ const validateInputs = (inputs) => {
|
||||
module.exports = {
|
||||
validateRsync,
|
||||
validateInputs
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user