conference-site/.gitea/workflows/build-deploy.yml
Emiliano Vavassori 6e136e925a
Some checks failed
Build and Deploy / Build (push) Failing after 1s
Build and Deploy / Deploy (push) Failing after 2s
Sistemata action di build e deploy - forse.
2024-03-02 17:33:10 +01:00

25 lines
690 B
YAML

---
name: Build and Deploy
on: [push]
jobs:
Build:
runs-on: site-builder
steps:
- run: source /app/venv/bin/activate
- run: pip install -r requirements.txt
- run: pelican content -s publishconf.py
Deploy:
runs-on: debian-bookworm
steps:
- uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SOURCE: output/
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
TARGET: /var/www/conference
SCRIPT_AFTER: |
sudo chown -R root:www-data /var/www/conference