Files
website/.gitea/workflows/deploy.yaml
Roberto Musso ec5284457f
Some checks failed
Deploy Website / deploy (push) Failing after 6s
update commit
2026-04-11 17:45:15 +02:00

38 lines
1.0 KiB
YAML

name: Deploy Website
run-name: Deploying static site by ${{ github.actor }}
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Deploy static files via SCP
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "index.html,privacy.html,terms.html,assets/*"
target: "/opt/adiuvai-waitlist/website/"
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