Spiegati passaggi build.
This commit is contained in:
parent
75fadb7c3f
commit
e46cf8ec5e
|
@ -5,10 +5,14 @@ jobs:
|
||||||
build+deploy:
|
build+deploy:
|
||||||
runs-on: site-builder
|
runs-on: site-builder
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Pull del repository
|
||||||
- run: /venv/bin/pip install -r requirements.txt
|
uses: actions/checkout@v4
|
||||||
- run: /venv/bin/pelican content -s publishconf.py
|
- name: Installazione dipendenze sito
|
||||||
- uses: burnett01/rsync-deployments@6.0.0
|
run: /venv/bin/pip install -r requirements.txt
|
||||||
|
- name: Compilazione del sito
|
||||||
|
run: /venv/bin/pelican content -s publishconf.py
|
||||||
|
- name: Trasferimento del sito
|
||||||
|
uses: burnett01/rsync-deployments@6.0.0
|
||||||
with:
|
with:
|
||||||
switches: -avz --delete
|
switches: -avz --delete
|
||||||
path: output/
|
path: output/
|
||||||
|
@ -17,7 +21,8 @@ jobs:
|
||||||
remote_user: ${{ secrets.REMOTE_USER }}
|
remote_user: ${{ secrets.REMOTE_USER }}
|
||||||
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
remote_path: /var/www/conference
|
remote_path: /var/www/conference
|
||||||
- uses: appleboy/ssh-action@v1.0.3
|
- name: Sistemazione permessi
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.REMOTE_HOST }}
|
host: ${{ secrets.REMOTE_HOST }}
|
||||||
port: ${{ secrets.REMOTE_PORT }}
|
port: ${{ secrets.REMOTE_PORT }}
|
||||||
|
|
Loading…
Reference in New Issue