使用 Gitea 环境变量 DEPLOY_KEY 部署
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
cp /home/starmen1265/.ssh/id_rsa ~/.ssh/id_rsa
|
||||
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H micecola.top >> ~/.ssh/known_hosts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user