fix forgejo deploy workflow
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
e6a2dddfa4
commit
ef0c592c11
1 changed files with 4 additions and 3 deletions
|
|
@ -14,9 +14,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
rm -rf /var/lib/apt/lists/*
|
if ! command -v ssh >/dev/null 2>&1; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends openssh-client
|
apt-get install -y --no-install-recommends openssh-client
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue