Skip to content

Add CI/CD deploy workflow with Discord notifications #1

Add CI/CD deploy workflow with Discord notifications

Add CI/CD deploy workflow with Discord notifications #1

Workflow file for this run

name: Deploy Docs to Production
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Docs
steps:
- name: Deploy to Primary Server
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
port: 22
script: |
echo "Starting docs deployment..."
/opt/Lokus-Prod/scripts/deploy-docs.sh
echo "Deployment complete!"
- name: Discord Notification
if: always()
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "Docs Deployment"
description: |
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}
By: ${{ github.actor }}
url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}