https://github.com/afeiship/action-deploy2ssh
An action for deploy to ssh.
https://github.com/afeiship/action-deploy2ssh
deploy linux scp server ssh
Last synced: about 1 year ago
JSON representation
An action for deploy to ssh.
- Host: GitHub
- URL: https://github.com/afeiship/action-deploy2ssh
- Owner: afeiship
- License: mit
- Created: 2023-08-18T23:34:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T13:06:22.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T12:28:46.208Z (over 1 year ago)
- Topics: deploy, linux, scp, server, ssh
- Language: HTML
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# action-deploy2ssh
> An action for deploy to ssh.
## usage
1. set secret `gh secret set -f ~/.dotfiles/.servers/.env.dicfree-server`
2. use below workflow
```yml
name: deploy2ssh workflow
on:
push:
branches: main
jobs:
Release:
name: Release
runs-on: ubuntu-latest
env:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
if: contains(github.event.head_commit.message, '__@production__')
steps:
- uses: actions/checkout@v3
- name: copy file via ssh password
uses: afeiship/action-deploy2ssh@main
with:
build_dist: app
target_dir: /mnt/vdb/wms.dicfree.cn/frontend/beta/
```
## for multiple envs
> tobe done.
```yml
```