This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Deploy HTML to Docker LXC
|
name: Deploy Website
|
||||||
run-name: Deploying static site by ${{ github.actor }}
|
run-name: Deploying static site by ${{ github.actor }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -8,17 +8,31 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest # Adjust if your runner uses a different label
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Copy site files to Docker LXC
|
- name: Deploy static files via SCP
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
source: "index.html,privacy.html,terms.html,assets/*"
|
source: "index.html,privacy.html,terms.html,assets/*"
|
||||||
target: "/opt/adiuvai-website/html/"
|
target: "/opt/adiuvai-waitlist/website/"
|
||||||
rm: true
|
rm: true
|
||||||
|
|
||||||
|
- name: Verify deployment
|
||||||
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
if [ -f /opt/adiuvai-waitlist/website/index.html ]; then
|
||||||
|
echo "✅ Website deployed"
|
||||||
|
else
|
||||||
|
echo "❌ index.html not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user