name: Deploy HTML to Docker LXC
run-name: Deploying static site by ${{ github.actor }}
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest # Adjust if your runner uses a different label
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Copy HTML files to Docker LXC
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "./*"
target: "/opt/adiuva-website/html/"
strip_components: 1
overwrite: true