Revert to old api path #28
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: VCS Production Deployment | |
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: "src/,public/,index.html,package.json,package-lock.json,tsconfig.json,tsconfig.node.json,vite.config.ts" | |
target: "/home/souch/html/souchca" | |
- name: Run Deploy Script | |
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: sh /home/souch/deploy.sh |