Skip to content

Commit 900ba02

Browse files
committed
Config: fix scp destination paths in release workflow.
The scp commands used relative paths (mud/appcast.xml, mud/releases/) which resolve from the home directory. Construct the absolute path from WEBSITE_SSH_HOST so the upload lands in the correct directory.
1 parent 3101ff3 commit 900ba02

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ jobs:
147147
> appcast.xml
148148
149149
# Publish appcast and release notes
150+
DEST="${WEBSITE_SSH_HOST}/mud"
150151
scp -i "$RUNNER_TEMP/deploy_key" -o StrictHostKeyChecking=no \
151152
appcast.xml \
152-
"${WEBSITE_SSH_USER}@${WEBSITE_SSH_HOST}:mud/appcast.xml"
153+
"${WEBSITE_SSH_USER}@${WEBSITE_SSH_HOST}:${DEST}/appcast.xml"
153154
scp -i "$RUNNER_TEMP/deploy_key" -o StrictHostKeyChecking=no \
154155
-r Site/releases/ \
155-
"${WEBSITE_SSH_USER}@${WEBSITE_SSH_HOST}:mud/releases/"
156+
"${WEBSITE_SSH_USER}@${WEBSITE_SSH_HOST}:${DEST}/releases/"
156157
157158
# Clean up
158159
rm -f "$RUNNER_TEMP/sparkle_key" "$RUNNER_TEMP/deploy_key"

0 commit comments

Comments
 (0)