(Testing Github Actions) Add move script #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |