Lets the test deploy work with group write access

`scp -r dist/.` also sets the mode of the target folder, which only its
owner may do. Copying the contents (`dist/*`, with dotglob for hidden
files) leaves the folder itself alone, so group write access on the test
folder is enough.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 09:32:23 +02:00
co-authored by Claude Opus 5.5
parent a87602ef5a
commit 67ef16b9f2
2 changed files with 30 additions and 1 deletions
+6 -1
View File
@@ -196,7 +196,12 @@ jobs:
fi
mkdir -p '$DEPLOY_PATH'
find '$DEPLOY_PATH' -mindepth 1 -delete"
sshpass -e scp -P "$SSH_PORT" -o StrictHostKeyChecking=accept-new -r dist/. "$SSH_USER@$SSH_HOST:$DEPLOY_PATH/"
# De inhoud kopiëren (dist/*), niet de map zelf (dist/.): dan probeert
# scp de rechten van de doelmap niet te zetten, wat alleen de eigenaar
# mag. Zo zijn groeps-schrijfrechten op de doelmap genoeg.
# dotglob: ook bestanden die met een punt beginnen gaan mee.
shopt -s dotglob
sshpass -e scp -P "$SSH_PORT" -o StrictHostKeyChecking=accept-new -r dist/* "$SSH_USER@$SSH_HOST:$DEPLOY_PATH/"
echo "Gedeployd naar test: ${GITHUB_REF_NAME} (${GITHUB_SHA::7})"
- name: Controle na deploy