26 lines
706 B
YAML
26 lines
706 B
YAML
name: Remote Build and Deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Execute Deployment via SSH
|
|
uses: appleboy/[email protected]
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SSH_USER }}
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
script: |
|
|
echo "--- Starting EPIC WEB CONTROL Deployment ---"
|
|
cd /var/www/atom-next/
|
|
git fetch --all
|
|
git reset --hard origin/main
|
|
echo "--- Deployment Completed Successfully ---" |