conference-site/.gitea/workflows/build-deploy.yml
Emiliano Vavassori 8a68fb931e
Some checks failed
Build and Deploy / Build (push) Failing after 4s
Build and Deploy / Deploy (push) Failing after 8s
Cambiato runner, cambiata logica.
2024-03-02 18:17:58 +01:00

25 lines
764 B
YAML

---
name: Build and Deploy
on: [push]
jobs:
Build:
runs-on: site-builder
steps:
- run: git clone ${{ gitea.repository }}
- run: /app/venv/bin/pip install -r conference-site/requirements.txt
- run: /app/venv/bin/pelican conference-site/content -o output -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