Cambiato runner, cambiata logica.

This commit is contained in:
Emiliano Vavassori 2024-03-02 18:17:58 +01:00
parent 8b0491ed57
commit 8a68fb931e
1 changed files with 4 additions and 5 deletions

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 }}