From 13982154182639cb14f26201eb92cb724d1eea33 Mon Sep 17 00:00:00 2001 From: Sven Steinert Date: Wed, 11 Feb 2026 12:13:50 +0100 Subject: [PATCH] modified: .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 748996e..209affd 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,17 +11,18 @@ jobs: - uses: actions/checkout@v4 - name: Deploy to shared pages - env: - OWNER: ${{ gitea.repository_owner }} - REPO: ${{ gitea.repository_name }} run: | + set -e + OWNER="$(echo "$GITHUB_REPOSITORY" | cut -d/ -f1)" + REPO="$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)" TARGET="/target/${OWNER}/${REPO}" + docker run --rm \ -v pages_root:/target \ -v "$PWD":/src \ alpine:3.20 sh -lc ' - apk add --no-cache rsync >/dev/null && - mkdir -p "'"$TARGET"'" && + apk add --no-cache rsync >/dev/null + mkdir -p "'"$TARGET"'" rsync -av --delete /src/ "'"$TARGET"'"/ \ --exclude ".git" --exclude ".gitea" '