conference-site/.gitea/workflows/build-deploy.yml
Emiliano Vavassori 8c2e1de334
Some checks failed
build and deploy / build (push) Failing after 13s
build and deploy / deploy (push) Failing after 30s
Cambio workflow con container abilitati.
2024-03-02 22:00:32 +01:00

30 lines
917 B
YAML

---
name: build and deploy
on: [push]
jobs:
build:
runs-on: site-builder
steps:
- uses: actions/checkout@v4
- run: /venv/bin/pip install -r requirements.txt
- run: /venv/bin/pelican content -s publishconf.py
deploy:
runs-on: site-deployer
steps:
- uses: burnett01/rsync-deployments@6.0.0
with:
path: output/
remote_host: ${{ secrets.REMOTE_HOST }}
remote_port: ${{ secrets.REMOTE_PORT }}
remote_user: ${{ secrets.REMOTE_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
remote_path: /var/www/conference
- uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.REMOTE_HOST }}
port: ${{ secrets.REMOTE_PORT }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: sudo chown -R root:www-data /var/www/conference