Skip to content

Update client-deploy-app.yml #3

Update client-deploy-app.yml

Update client-deploy-app.yml #3

name: Transfer App Directory via using scp command on Push or Merge to Server
on:
push:
branches:
- 'client/release/*'
pull_request:
types: [closed]
branches:
- 'client/release/*'
jobs:
transfer-app:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Transfer app directory to the server
run: |
scp -r app [email protected]:/var/www/html/