Lancio il deploy del sito web

Uso della custom action realizzata per CI/CD

Signed-off-by: Francesco Mancuso <hello@francescomancuso.it>
This commit is contained in:
2026-01-24 22:26:43 +01:00
parent d29925b929
commit 53f8ee9f03

View File

@@ -0,0 +1,24 @@
name: Deploy
on: [push]
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Build & Deploy
env:
REPO_NAME: ${{ gitea.event.repository.name }}
REPO_OWNER: ${{ gitea.repository_owner }}
ROOT_DIR: "/"
TYPE: "pages"
JOB_TOKEN: ${{ gitea.token }}
run: |
curl -f -s -S -X -v POST http://gitea-webhook:9000/hooks/trigger-deploy \
-H "Content-Type: application/json" \
-d "{
\"repository\": { \"name\": \"$REPO_NAME\" },
\"owner\": { \"username\": \"$REPO_OWNER\" },
\"root\": \"$ROOT_DIR\",
\"type\": \"$TYPE\",
\"token\": \"$JOB_TOKEN\"
}"