From 8a68fb931ef37f9232c9a00029275cbeb0ec1aad Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 2 Mar 2024 18:17:58 +0100 Subject: [PATCH] Cambiato runner, cambiata logica. --- .gitea/workflows/build-deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index 7136358..8b243df 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -5,10 +5,9 @@ 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 + - 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 @@ -16,7 +15,7 @@ jobs: - uses: easingthemes/ssh-deploy@main env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - SOURCE: ${{ gitea.repository }}/output/ + SOURCE: output/ REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_USER: ${{ secrets.REMOTE_USER }} REMOTE_PORT: ${{ secrets.REMOTE_PORT }}