ci(push): test ssh both keys in secrets
Some checks failed
push / build (push) Failing after 6s

This commit is contained in:
张泊明518370910136 2024-10-19 06:49:06 -04:00
parent 67149c1283
commit 6c67d0e8b4
GPG Key ID: CA088E6D9284F870

View File

@ -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