Cambio actions per forgejo.
All checks were successful
build and deploy / build+deploy (push) Successful in 39s
All checks were successful
build and deploy / build+deploy (push) Successful in 39s
This commit is contained in:
parent
d5c03e91b8
commit
e0021ea75c
1 changed files with 2 additions and 2 deletions
31
.forgejo/workflows/build-deploy.yml
Normal file
31
.forgejo/workflows/build-deploy.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
name: build and deploy
|
||||
on: [push]
|
||||
jobs:
|
||||
build+deploy:
|
||||
runs-on: site-builder
|
||||
steps:
|
||||
- name: Pull del repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Installazione dipendenze sito
|
||||
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: https://github.com/burnett01/rsync-deployments@6.0.0
|
||||
with:
|
||||
switches: -avz --delete
|
||||
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
|
||||
- name: Sistemazione permessi
|
||||
uses: https://github.com/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
|
Loading…
Add table
Add a link
Reference in a new issue