ci: add trailing newline when writing SSH key
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq rsync
|
||||
mkdir -p ~/.ssh
|
||||
printf '%s' "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan onixbyte.cn >> ~/.ssh/known_hosts
|
||||
rsync -avz --delete doc_build/ root@onixbyte.cn:${{ vars.DEPLOY_PATH }}
|
||||
|
||||
Reference in New Issue
Block a user