https://github.com/sebastianjnuwu/ssh-action-deploy
🐙 Deploy your application with quick and easy command execution
https://github.com/sebastianjnuwu/ssh-action-deploy
action actions deploy deployable deployment deployment-automation github-action github-actions shell ssh vps
Last synced: about 1 year ago
JSON representation
🐙 Deploy your application with quick and easy command execution
- Host: GitHub
- URL: https://github.com/sebastianjnuwu/ssh-action-deploy
- Owner: sebastianjnuwu
- License: apache-2.0
- Created: 2023-01-29T22:50:58.000Z (over 3 years ago)
- Default Branch: action
- Last Pushed: 2024-08-08T17:03:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-08T21:33:04.680Z (over 1 year ago)
- Topics: action, actions, deploy, deployable, deployment, deployment-automation, github-action, github-actions, shell, ssh, vps
- Homepage: https://github.com/marketplace/actions/ssh-action-deploy
- Size: 87.9 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
ssh-action-deploy
"What you were looking for all this time to be here, deploy your application"
# About
Deploy your application to vps over ssh quickly and easily using github actions...
- Deploy your application
- Execute commands
- Easy and fast
# mode of use
Worth remembering if you have any questions or suggestions just open an [issue](https://github.com/sebastianjnuwu/ssh-action-deploy/issues).
## Warning
Read this before running ssh-action-deploy
• During deploy the folder you put in is cleaned.
• We use the default ssh port (22) to execute the deploy
• If you want to use several commands, separate them with `&` or `;`.
## example
It is very simple to use, see the example:
```yml
# Please read the next section below before using for your own safety "variables".
name: 🐥 ssh-action-deploy
on:
push:
branches: [ "action" ]
pull_request:
branches: [ "action" ]
jobs:
build:
name: 🕳️ Ubuntu...
runs-on: ubuntu-latest
steps:
- name: 💞 Github actions...
uses: actions/checkout@v3
- name: 🌈 Deploy with ssh...
uses: sebastianjnuwu/ssh-action-deploy@v4
with:
IP: ${{ secrets.IP }}
USER: ${{ secrets.USER }}
KEY: ${{ secrets.KEY }}
FOLDER: "/root/.deploy"
RUN: "ls -a; pwd"
```
## variables
| variable | example | require |
| -------- | ----------- | ------- |
| `IP` | `1.1.1.1`| `true` |
| `USER` | `root` | `true` |
| `KEY` | `xxxxxx` | `true` |
| `FOLDER` | `/root/.deploy`| `true` |
| `RUN` | `uptime` | `false` |