modified: .gitea/workflows/deploy.yml

This commit is contained in:
Sven Steinert
2026-02-11 12:13:50 +01:00
parent 46e6a9ad75
commit 1398215418

View File

@@ -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"
'