Cambiato runner, cambiata logica.
Some checks failed
Build and Deploy / Build (push) Failing after 4s
Build and Deploy / Deploy (push) Failing after 8s

This commit is contained in:
Emiliano Vavassori 2024-03-02 18:17:58 +01:00
parent 8b0491ed57
commit 8a68fb931e

View File

@ -5,10 +5,9 @@ jobs:
Build: Build:
runs-on: site-builder runs-on: site-builder
steps: steps:
- uses: actions/checkout@v3 - run: git clone ${{ gitea.repository }}
- run: cd ${{ gitea.repository }} - run: /app/venv/bin/pip install -r conference-site/requirements.txt
- run: /app/venv/bin/pip install -r requirements.txt - run: /app/venv/bin/pelican conference-site/content -o output -s publishconf.py
- run: /app/venv/bin/pelican content -s publishconf.py
Deploy: Deploy:
runs-on: debian-bookworm runs-on: debian-bookworm
@ -16,7 +15,7 @@ jobs:
- uses: easingthemes/ssh-deploy@main - uses: easingthemes/ssh-deploy@main
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SOURCE: ${{ gitea.repository }}/output/ SOURCE: output/
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }} REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }} REMOTE_PORT: ${{ secrets.REMOTE_PORT }}