Skip to content

Production Deployment #9

Production Deployment

Production Deployment #9

Workflow file for this run

name: Production Deployment
on:
workflow_run:
workflows: ["Run tests"]
types:
- completed
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
# Deploy only when the "Run tests" workflow succeeded
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Run SSH Deployment
steps:
- name: Running deployment script on server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SUPERCHARGE_DEPLOY_SSH_HOST }}
username: ${{ secrets.SUPERCHARGE_DEPLOY_SSH_USER }}
port: ${{ secrets.SUPERCHARGE_DEPLOY_SSH_PORT }}
key: ${{ secrets.SUPERCHARGE_DEPLOY_SSH_PRIVATE_KEY }}
script: /home/launch/scripts/deploy-superchargejs.com.sh