Skip to content

Deploy

Deploy #69

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
jobs:
production-deploy:
name: Deploy to Production
if: ${{ github.repository == 'NachoToast/Jukebot' && github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
concurrency: production_environment
steps:
- name: Execute remote build process
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd services_v2/Jukebot
chmod +x scripts/deploy.sh
./scripts/deploy.sh