conference-site/.gitea/workflows/build-deploy.yml
Emiliano Vavassori 8b0491ed57
Some checks failed
Build and Deploy / Build (push) Failing after 9s
Build and Deploy / Deploy (push) Failing after 2s
Ancora cambi sulla machinery.
2024-03-02 17:45:24 +01:00

26 lines
773 B
YAML

---
name: Build and Deploy
on: [push]
jobs:
Build:
runs-on: site-builder
steps:
- uses: actions/checkout@v3
- run: cd ${{ gitea.repository }}
- run: /app/venv/bin/pip install -r requirements.txt
- run: /app/venv/bin/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: ${{ gitea.repository }}/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