Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add GNU General Public License v3 #11

Add GNU General Public License v3

Add GNU General Public License v3 #11

Workflow file for this run

name: DEPLOY
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: set -eu
- name: Install sshpass
run: sudo apt-get install -y sshpass
- run: mkdir "$HOME/.ssh"
- run: echo "${{ secrets.OCAT }}" > "$HOME/.ssh/key2"
- run: chmod 600 "$HOME/.ssh/key2"
- name: Rsync files to server
run: |
cd app
export SSHPASS=${{ secrets.SSH_PASSWORD_OCAT }}
rsync -e "sshpass -e ssh -p 3333 -i $HOME/.ssh/key2 -o StrictHostKeyChecking=no" --archive --compress --update . "${{ secrets.DEPLOY_TARGET_OCAT }}"