From 6c67d0e8b422553913062c01fa1f8e689fb1476b Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 19 Oct 2024 06:49:06 -0400 Subject: [PATCH] ci(push): test ssh both keys in secrets --- .gitea/workflows/push.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 11e5350..a30355a 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -18,8 +18,11 @@ jobs: go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519 + echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519.pub chmod 600 ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519.pub + ssh -T git@focs.ji.sjtu.edu.cn -p 2222 shell: bash - name: Determine build command id: build_command