Skip to content

(Testing Github Actions) Add move script #22

(Testing Github Actions) Add move script

(Testing Github Actions) Add move script #22

Workflow file for this run

name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- master
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Secure Copy Repository
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
overwrite: true
tar_tmp_path: "/home/souch/tmp/"
source: "."
target: "/home/souch/html/souchca"
- name: Move Files to Correct DIR
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: mv /home/souch/html/souchca /var/www/html/souchca